Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running Extrenal Programs
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00185803
Message ID:
00185990
Views:
22
>>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
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform