Discussion Locked

Path Variable

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How can I add a permanent path to the system path environment variable. If I add it by opening a command prompt or running a batch file using the PATH=%PATH%;*New Path Location* it only stores it temporarily in the user environment variable. I have tried the registry entry HKLM\System\CurrentControlSet\Control\Session Manager\Environment\Path which works but I cannot amend this registry setting via a batch file\command prompt as the DOS box complains that the line is too long.

3 replies

by darry

Dear,
Have you tried to add from the controlpanel==>System==> Variable.

Do let me know I may help!

by whightd

Need to do it from a batch file. Have since found a resource kit utility called setx which sets system variables from a command prompt.

Thanks.

This discussion is closed to new replies.