Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to Handle Processes
Message
 
 
À
05/11/2001 23:39:15
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00575752
Message ID:
00577787
Vues:
28
>Nadya,
>
>Unless I'm missing something which is very possible, I can't see how this class would work with adist.exe &stringfile. I have got to know when the distill process is done.

Does this code work for you?
SET PROCEDURE TO Process ADDITIVE
oProcess = CREATEOBJ('API_AppRun','adist.EXE '+m.StringFile,'C:\','NOR')
*Run the application and don't wait to terminate
oProcess.LaunchApp()
*Check the exit status;  259 means still running
IF oProcess.CheckProcessExitCode() = 259
	wait window 'Still running'
ELSE
	wait window 'Terminated with a '+alltrim(str(oProcess.CheckProcessExitCode()))
ENDIF
? oProcess.KillProc()
oProcess = ''
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform