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
Titre:
Run .bat file???
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Oracle
Divers
Thread ID:
01469536
Message ID:
01469536
Vues:
132
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:

lcDosCommand = 'bhftp_ScriptRunner.bat'
Run/N7 &lcDosCommand

...and this is what's in the .bat file:

winscp /console /script=bhFTP_Script.txt /log=wlog.txt

if errorlevel 1 goto error
echo Success
Del failed.flg

goto end

:error
echo Error!
Del Success.flg

:end


...so I'm using the RUN /N7 command to try to do this. I *thought* the N7 switch would keep the dos window from appearing but it still flashes. Anyway surely there is a better approach to do this than what I've come up with thus far.... any suggestions anyone?
ICQ 10556 (ya), 254117
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform