How to change the Environment variable

L

langhammer

Is it possible to modify the Environment variable (not the path for
user!) via batch ?
Maybee changing the registryvalue in \HKEY_LOCAL_MACHINE ?

If I set path=%path%;c:\newfolder it is not enough and no environment
variable.
To change it about the explorer would be stupid, because its not
possible to change every entry on PCs by hand
 
P

Pegasus \(MVP\)

Is it possible to modify the Environment variable (not the path for
user!) via batch ?
Maybee changing the registryvalue in \HKEY_LOCAL_MACHINE ?

If I set path=%path%;c:\newfolder it is not enough and no environment
variable.
To change it about the explorer would be stupid, because its not
possible to change every entry on PCs by hand

You can use either of these tools:
setx.exe (Win2000 Resource Kit)
setenv.exe (ftp://barnyard.syr.edu/pub/vefatica/setenv.exe)

Note that your modification will be visible to all applications
launched ***after*** you have made the change. It will not
affect pre-existing applications.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top