Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running Extrenal Programs
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00185803
Message ID:
00186404
Vues:
15
>>>I recommend a slight change to make it more portable (for NT anyway, don't know about Win9X):
>>>
>>>LOCAL lcCommand
>>>lcCommand = "! /N %systemroot%\notepad.exe" + " " + docs.file_name
>>
>>Win9x doesn't have the %systemroot% environment variable available.
>
>As someone pointed out in another thread about running external programs which are in the Windows directory, you can rely on the Windows directory being in the OS Search Path regardless of version of windows. So the most portable way to run notepad would be to not specify the path to it, IMO.
>
>Cheers,
>Rich


Alternatively, you could call the FindExecutable API function...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform