Jump to content

Recommended Posts

Posted

Hey guys, anyone got SETENV.EXE? I search everywhere on the net and all the webpages give me this access

ftp://barnyard.syr.edu/pub/vefatica/setenv.exe

Unfortunately this website is down and there is no more link, can anyone post a link to this file? Thanks!


Posted

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 content

D:\Setenv.exe -m path C:\TestDir

2) 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!

Guest Cebaoth
Posted

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%\temp
setenv -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?

  • 10 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...