Try something like this...It will print to the console and wait for you to hit a key if an errors are found...

Code:
:TRACKIT

if ingroup("Trackit")
use t: /delete
use t: "\\tx-apps2\intuit"
If Exist ("T:\tiwsmgr.exe")
RUN 'T:\tiwsmgr.exe /service /audit'
If @Error <> 0
? "Error "+@Error+" when running T:\tiwsmgr.exe - "+@SError
get $
exit 0
Endif
Else
? "Unable to find T:\tiwsmgr.exe"
get $
Exit 0
Endif
else
? "Not In TrackIt Group"
get $
endif



[edit] Put quotes around use statement. [/edit]



Edited by CitrixMan (2004-04-03 08:38 PM)