Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShellExecute wait for completion
Message
De
02/07/2007 15:55:39
 
 
À
02/07/2007 13:12:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01237168
Message ID:
01237233
Vues:
16
1. I can't get WSH to give a return code.

2. The API_APPRUN has a date of 1999. I am concerned about vista compatibility.

Any comments?


>>Is there a way to make VFP wait until the "launch.exe" program terminates in the code shown? (Sort of like the way RUN works by default)
>>
>>DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
>> INTEGER hwnd, ;
>> STRING lpVerb, ;
>> STRING lpFile, ;
>> STRING lpParameters, ;
>> STRING lpDirectory, ;
>> LONG nShowCmd
>>
>>=Shellexecute(0,"Open","launch.exe","","F:\Develop\Tarma\iePoint2007CD\",0)
>
>You cold use:
>API_APPRUN in .VCX form Download #9477
>
>Or you could use WSH:
>
>oWSH = CREATEOBJECT([Wscript.Shell])
>oWSH.Run([launch.exe],1,1)
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform