Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Waiting for Command Line Utility
Message
 
To
14/04/2006 03:52:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01113671
Message ID:
01113680
Views:
21
This message has been marked as the solution to the initial question of the thread.
>Hi All. I want to run a command line (console) program and wait for it to complete before continuing with my app. I am using:
>
>
>oShell = CREATEOBJECT( 'WScript.Shell' )
>oShell.RUN( TRUN_CMD, .T. )
>
>
>I have used this same code to run other Windows apps and it works. Does this code also work correctly for running console apps / DOS apps? Just looking for confirmation that the technique is right for DOS apps as well.
>
>Thanks

Jon,
Thirth parameter is for waiting, second is for Window Style.
oShell = CREATEOBJECT( 'WScript.Shell' )
oShell.RUN( TRUN_CMD, 3, .T. )
And yes, you could use it for DOS applications.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform