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

[sqr-users] Call System with Wait does not work in Windows



Hi,

I read through as many posts as I could find on using the wait option with 
Call System and I cannot find a problem quite like the one I'm experiencing.

If I execute the following:

    let $mycmd = 'c:\temp\a.bat'
    call SYSTEM using $mycmd #sts wait
    display #sts

then #sts has a value of 1 and my batch command does not get executed. If I 
remove the wait from the end of the call SYSTEM command then the batch file 
does execute and #sts is 0.

It would appear therefore that it is the "wait" parameter itself that is the 
cause of my error.

Has anyone come across this before?

Thanks,

Dele Sikuade



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