Hi David,
Here is part of the code. I hope this is what you need.
Thanks, Laurie
set body “$body”
echo nEMAIL MESSAGE: $bodyn
#Sending the email
set cmd “exec cmd /C C:/blat/blat.exe -body $body -to $to -cc $cc -f $from -subject $subject -server $server”
echo “++++++++++++++++++++++++++++++++++++++++++++Counter File Email ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++”
if {[catch $cmd result]} {
echo “ERROR: An error occurred running “$cmd”.”
echo ” Result was: $result”
}
echo “~~~~~~~~~~~~~~~~~~~~~~~ Done sending the counts to Radiology ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~”