Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax for (system ) call ?

Status
Not open for further replies.

simetra

Programmer
May 24, 2001
22
US
Hi
I'm trying to get the (system ) function to work in Win2000. I've got this FTP eway (this is egate 4.5.2). In the batch-exchange-data.monk, I want to call the (system ) function to launch a batch file. This is what I'm doing, but it doesn't seem to work:
(system "put.bat" #t)
I'm thinking maybe my syntax is wrong. I've also tried supplying the full path to the batch file, with no luck. The error log does not show anything wrong - I've got a log-write fuction before and after this, both of which work fine, with no errors in between.
Any ideas?
Thanks
 
Hi
I got this to work.... the secret is to put the command path in ALL CAPS. Example:
(system "C:\PATH\TO\BATCHFILE.BAT")
Go figure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top