Author: Rob Anderson
Posted: 2007-11-12 at 09:47:32
Hi Ed,
Maybe you can modify the registry key :-
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\
Environment]
Which will achieve this for you.
(Further info at http://support.microsoft.com/kb/104011)
HTH,
Robbo
Rob Anderson | Software Engineer | Pegasus, an Infor company | t: +44
1536 495000 | d: +44 1536 495006 | f: +44 1536 495214 |
rob.anderson@pegasus.co.uk | www.pegasus.co.uk
-----Original Message-----
From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On
Behalf Of Ed Leafe
Sent: 12 November 2007 14:39
To: ProFox Email List
Subject: Re: [NF] How do I make a program name generally executable?
On Nov 12, 2007, at 9:29 AM, Rob Anderson wrote:
> Right mouse click my computer - properties - advanced tab.
>
> Environment variables, and change PATH to include :-
>
> \Program Files\Some Directory\Some Other Directory
OK, thanks to all. I thought that it was more difficult than
just
modifying the path.
Next question: how can I do that programmatically? IOW, I want
to
give the user the option of adding the "c:\Program Files\Some
Directory\Some Other Directory" to the path. If they say yes, how can
I do that in a batch file?
-- Ed Leafe
[excessive quoting removed by server]