Over.Kill Posted January 18, 2009 Share Posted January 18, 2009 (edited) 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, 2009 by Over.Kill Link to comment Share on other sites More sharing options...
Over.Kill Posted January 18, 2009 Author Share Posted January 18, 2009 heh...nevermindHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environmentproblem solved Link to comment Share on other sites More sharing options...
DL. Posted January 18, 2009 Share Posted January 18, 2009 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. Link to comment Share on other sites More sharing options...
jaclaz Posted January 18, 2009 Share Posted January 18, 2009 And, just for the record and for future reference, SETENV may be useful:http://barnyard.syr.edu/~vefatica/#SETENVjaclaz Link to comment Share on other sites More sharing options...
DL. Posted January 18, 2009 Share Posted January 18, 2009 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..). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now