>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement