Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Using shellexecute in .prg file.. Shell Execute Can't Finish
Versions des environnements
Running into a problem that I cannot find a solution for. In order to run a particular executable from a .prg file over a network without mapping a drive letter (using a UNC path), I need to run the program file from shellexecute. No problem there. The problem comes from the fact the Visual FoxPro wants to just keep going before the program shellexecute started finishes. I need a way to allow the program (pkzip) to complete without the user having to hit a key (required with the wait command.)
Question... Is there a way to allow the shellexecute command to finish before the .prg file continues? Without having to use WAIT?
=============
DECLARE ShellExecute IN shell32.dll ;
Integer, String, String, String, String, Integer
ShellExecute(0,"open","pkzip25","-ext -dir -over=all update","",1)
*** PROBLEM AREA ***
syscountry = 1
DO update1
DELETE FILE UPDATE.ZIP
DELETE FILE *.BAK
DELETE FILE *.TBK
CLEAR
RETURN
=============
Thank you in advance!
Jack Wilson
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement