Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp8 vs vfp9
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01130175
Message ID:
01130232
Vues:
10
Thanks a lot Anatoliy, it works with Windows Scripting.
Tamas

>I would suggest using WaitForSingleObject API call instead of calling GetExitCodeProcess within DO WHILE cycle. This way it works -- have just tested -- in both VFP8 and VFP9.
>
>#DEFINE INFINITE  0xFFFFFFFF
>= WaitForSingleObject(hProcess, INFINITE)
>
>Insert this line immediately after obtaining process and thread handles replacing the DO WHILE part.
>
>Also you may consider using Windows Scripting objects.
>
>#DEFINE EXEC_NOWAIT 0
>#DEFINE EXEC_AND_WAIT 1
>oShell = CreateObject('WScript.Shell')
>oShell.Run("notepad c:\temp\myfile.txt", 1, EXEC_AND_WAIT)
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform