moncheris
13th February 2003, 00:44
How do I call a cmd/bat file from Baan server? The cmd/bat file is located in c:\tmp\XXX.cmd. Actually I need to run some window scripting on the NT server which the batch file actually states the command 'cscript c:\tmp\runfile.vbs'.
I try using
process.error = run.prog("cmd.exe", "/C c:\tmp\XXX.cmd", RP_WAIT)
and
process.error = run.prog("c:\tmp\XXX.cmd", "", RP_WAIT)
and this doesn't work either.
Both examples above don't work.
Also try directly giving the command
process.error = run.prog("cmd.exe", "/C cscript c:\tmp\runfile.vbs", RP_WAIT) and this doesnt work either.
All give me a process.error > 0.
Any help will be appreciated.
Thanks!
I try using
process.error = run.prog("cmd.exe", "/C c:\tmp\XXX.cmd", RP_WAIT)
and
process.error = run.prog("c:\tmp\XXX.cmd", "", RP_WAIT)
and this doesn't work either.
Both examples above don't work.
Also try directly giving the command
process.error = run.prog("cmd.exe", "/C cscript c:\tmp\runfile.vbs", RP_WAIT) and this doesnt work either.
All give me a process.error > 0.
Any help will be appreciated.
Thanks!