Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run .bat file???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Oracle
Divers
Thread ID:
01469536
Message ID:
01469622
Vues:
65
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform