VBS To set enviroment variables
By nater

Set WshShell = WScript.CreateObject("WScript.Shell")

'System Environment Variable
Set WshSysEnv = WshShell.Environment("SYSTEM")
WshSysEnv("variable") = "value"

'User Environment Variable
Set WshSysEnv = WshShell.Environment("USER")
WshUserEnv("variable") = "value"

'Process Environment Variable
Set WshSysEnv = WshShell.Environment("PROCESS")
WshProcessEnv("variable") = "value"

Rating:


0/5 based on 0 votes. The median rating is 0.

Submitted: 11/19/10 (Edited 11/24/10)

Description: This VBS will set windows enviroment Variables. Either system, user or process varaibles using WSH.

Tags:

Views: 101 views. Averaging 0 views per day.
In the most recent 30 day period, there've been 0 views.

Similar Articles:
Retrieve Windows System Variables

Previous Article | Next Article