Hello
I have never done any dos programming before, but need a script that will append (permanently) a value to the path variable; in addition the script should only add the value if it is not already in the path variable.
Any help, pointers etc would be apprecitaed
appending to the path variable
Moderator: DosItHelp
Re: appending to the path variable
I remember there was already a thread and I found it.
http://www.dostips.com/forum/viewtopic.php?f=3&p=11163#p11163
To change it permanently you have to change it in the registry (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment) using REG ADD and restart (perhaps restarting process "explorer.exe" is sufficient). An alternative could be the SETX command (if available).
Regards
aGerman
http://www.dostips.com/forum/viewtopic.php?f=3&p=11163#p11163
To change it permanently you have to change it in the registry (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment) using REG ADD and restart (perhaps restarting process "explorer.exe" is sufficient). An alternative could be the SETX command (if available).
Regards
aGerman
Re: appending to the path variable
Thanks
I'll give it a try
I'll give it a try