Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running external Programs
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 5
OS:
Windows 2000 SP2
Database:
Visual FoxPro
Divers
Thread ID:
00966740
Message ID:
00967478
Vues:
8
>>>>One of the solutions is:
>>>>
>>>>DECLARE INTEGER WinExec IN win32api ;
>>>>   STRING command, INTEGER nShow
>>>>
>>>>=WinExec("exename.exe parameter",1)
>>>
>>>Yuri,
>>>
>>>This function is provided strictly for backward compatibility with Win16 based apps.
>>
>>Thank you, George. Good to know it.
>>By the way, so happened, I currently support projects which were created long time ago, gradually being updated when needed, and which have winexe in many VFP8 modules. What would be your recommendation? To replace all Winexec there (just in case) or leave them as is?
>
>Yuri,
>
>Basically, I'd say that "if it ain't broke, don't fix it". However, in the future, I'd recommend either the ShellExecute() function or using the WScript.Shell's run method, depending on the platform. If it's Win2K or above, I'd go with the latter.

Thanks, George.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform