Script for changing environnement variables on Windows
-
Hi ! I need to write a script to change the environnement variables (user and system variables), but I have no idea how to do that. I tried to find something on Google related to VBscript, but didn't find anything. Could anyone give me some hints (I only know VBscript and batch). Thanks ! Jerome
-
Hi ! I need to write a script to change the environnement variables (user and system variables), but I have no idea how to do that. I tried to find something on Google related to VBscript, but didn't find anything. Could anyone give me some hints (I only know VBscript and batch). Thanks ! Jerome
use the dos command
set
_Displays, sets, or removes cmd.exe environment variables.
SET [variable=[string]]
variable Specifies the environment-variable name.
string Specifies a series of characters to assign to the variable.Type SET without parameters to display the current environment variables._