>>>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...
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only