yong2579 Posted July 21, 2004 Posted July 21, 2004 Hey guys, anyone got SETENV.EXE? I search everywhere on the net and all the webpages give me this accessftp://barnyard.syr.edu/pub/vefatica/setenv.exeUnfortunately this website is down and there is no more link, can anyone post a link to this file? Thanks!
yong2579 Posted July 21, 2004 Author Posted July 21, 2004 I realise that this SetEnv.exe does not update the changes immedately although the net say it does so. What i have done is:1) Write a batch file maybe AddPath.bat which has the following contentD:\Setenv.exe -m path C:\TestDir2) Add the batch file into RunOnceEx entry.3) Log off and back on to allow RunOnceEx to execute (I understand there is a rundll32 method)4) I confirm that the batch file is run (use pause to check)However, when i was in windows and i went to CMD.EXE and type PATH, the path content is still the previous value! I check the registry and environment variables in Control Panel->System->Advanced->Environments Variables and they have been updated but the command window have not. Why is it so?I need the system to understand that PATH have been updated else my other applications in the batch file during RunOnceEx will fails... Is there any method? Please Help, Thanks!
Bilou_Gateux Posted July 21, 2004 Posted July 21, 2004 Nice small tool !Another link found with google :http://securite.univ-rennes1.fr/SSH/utilisation.html
Guest Cebaoth Posted July 28, 2004 Posted July 28, 2004 I put setenv.exe into the $oem$\$$\system32 folder to make sure it is reachable. Then I started a set_var.cmd file containing some changes on variables:md %systemdrive%\tempsetenv -d tmp "%systemdrive%\temp"setenv -d temp "%systemdrive%\temp"setenv -m tmp "%systemdrive%\temp"setenv -m temp "%systemdrive%\temp"This batch is called by cmdlines.txt during setup.As I understood, the system variables you see within the system properties are not equal to the variables you get in command line with "SET". E.G. if you add a user variable "test" in the system properties\environment variables dialogue you won't see it at the command line.Maybe somebody knows how the two variable types belong together?
matthewk Posted June 11, 2005 Posted June 11, 2005 they seem to reside here in registry [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
sleepnmojo Posted June 12, 2005 Posted June 12, 2005 For modifying the PATH variable, I use pathmanI used to go the setenv/setx way before, but for that variable, I always had issues. pathman fixes them all.
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