[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

[sqr-users] Call System thru NT Process Schedular



Hello all,

I'm trying to execute a .bat file in an SQR using the Call System command.

code:
let $COMSPEC=getenv('COMSPEC')
let $Copy_String = $COMSPEC || ' /C d:\temp\copy.bat'
Call System Using $Copy_String #Status

show $Copy_String
show #Status

   If #Status<>0
       Show 'Error'
   End-if

The .bat file executes fine when the SQR is run manually through SQRW; 
however when I run through the Windows 2000 Process Schedular the .bat file 
does not execute but I receive a successful #Status (0.00).
What am I missing?

Thanks,
John Berk





_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users