January 18, 200917 yr echo %path%C:\SYS\WINDOWS\system32;C:\SYS\WINDOWS;C:\SYS\WINDOWS\System32\Wbempath=%path%;C:\SYS\APPS\Team OvKecho %path%C:\SYS\WINDOWS\system32;C:\SYS\WINDOWS;C:\SYS\WINDOWS\System32\Wbem;C:\SYS\APPS\Team OvK<exit CMD>echo %path%C:\SYS\WINDOWS\system32;C:\SYS\WINDOWS;C:\SYS\WINDOWS\System32\WbemI have several in-house utilities I run and for ease of use, etc. I want to be able to run them from the run dialog. Is there a way to add my custom directory to the PATH variable **FROM A SCRIPT**? Because I manage systems on several networks, I want to be able to copy my apps from a flash/external drive and add the copied directory via a script, instead of doing it manually for each install.Is this possible, or should I try and find a way to get AutoIt to do the work for me? Edited January 18, 200917 yr by Over.Kill
January 18, 200917 yr Author heh...nevermindHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environmentproblem solved
January 18, 200917 yr You could also use the MS utility named setx (search for it, it's in a resource kit).When setting it using a reg-file you change the entire path, which may affect other programs on some of the computers.Setx just adds to the path without changing the rest of it.
January 18, 200917 yr And, just for the record and for future reference, SETENV may be useful:http://barnyard.syr.edu/~vefatica/#SETENVjaclaz
January 18, 200917 yr And, just for the record and for future reference, SETENV may be useful:http://barnyard.syr.edu/~vefatica/#SETENVjaclazDidn't know about that one, might be useful (bookmarking the link..).
Create an account or sign in to comment