Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to handle external program run ??
Message
 
To
04/01/2001 23:30:40
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00459666
Message ID:
00459738
Views:
23
>Dear everybody,
>In my program, I write a backup/restore routine which utilize winrar as backup program.
>
>In my segment:
>
>:
>:
>run /n1 winrar a -o+ bb.rar .
>wait window "OKAY" nowait
>:
>:
>
>However, The program switch to next line, before the first line run completed.
>How can I program to do that the wait window preform after the run command completely done.
>
>
>Yours faithfully,
>
>SO

If the Windows Script Host is installed, the WScript.Shell object's run method can do this.
oShell = CREATEOBJECT('WScript.Shell')
oShell.Run("winrar.exe a -o+ bb.rar", 1, .T.)
WAIT WINDOW "OKAY" NOWAIT
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform