July 21, 200422 yr 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!
July 21, 200422 yr Author 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!
July 21, 200422 yr Nice small tool !Another link found with google :http://securite.univ-rennes1.fr/SSH/utilisation.html
July 28, 200422 yr 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?
June 11, 200521 yr they seem to reside here in registry [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
June 12, 200521 yr 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.
Create an account or sign in to comment