running many commands (os-command )

Posted by HachDev on 15-Apr-2015 09:47

hi,

how can i run many commands at the same time using os-command??

All Replies

Posted by Brian K. Maher on 15-Apr-2015 09:52

Try this...
 
OS-COMMAND("CD \ && DIR /W /S").  /* switch to root dir & dump out a directory listing of the disk in wide mode */
 
for documentation on what options are available do "cmd /?" from a command prompt.
 
 
[collapse]
From: HachDev [mailto:bounce-HachDev@community.progress.com]
Sent: Wednesday, April 15, 2015 10:48 AM
To: TU.OE.Development@community.progress.com
Subject: [Technical Users - OE Development] running many commands (os-command )
 
Thread created by HachDev

hi,

how can i run many commands at the same time using os-command??

Stop receiving emails on this subject.

Flag this post as spam/abuse.

[/collapse]

Posted by Thomas Mercer-Hursh on 15-Apr-2015 10:34

Batch file or shell script?

Posted by HachDev on 15-Apr-2015 10:36

batch file please

Posted by keithg on 21-Apr-2015 11:16

If I understand your question correctly, one solution would be to use OpenEdge code to create a batch file containing the OS commands you want to run, then invoke the batch file using the OS-COMMAND statement.

This thread is closed