>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.