Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run .bat file???
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Oracle
Miscellaneous
Thread ID:
01469536
Message ID:
01469622
Views:
73
>I have a .bat file that runs a script file to transfer a file to an sFTP.
>
>My problem is that the .bat file & script run pretty fast, and I don't want the rest of my VFP code that comes after this to run until the script/.bat file is finished.
>
>Right now I'm doing something like this:
>
> = 'bhftp_ScriptRunner.bat'
>Run/N7 &lcDosCommand


if scripting is an option, you can try
loSHell		= Createobject('WSCript.Shell')
loShell.Run(lcDosCommand, 0, .t.) && 0: Hide window, .t. : wait command to finish
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform