>>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,
RichRich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing