How to set the value of a system environment variable from the command line?
-
Is it possible to set the value of a system environment variable from the command line? If yes, how? (NT 4.0, Windows 2000, XP) Thanks.
-
Is it possible to set the value of a system environment variable from the command line? If yes, how? (NT 4.0, Windows 2000, XP) Thanks.
Check out: http://www.winnetmag.com/Articles/Index.cfm?ArticleID=5379 Here is the relevent blurb: If you want to use a batch file to assign values to variables, use the Setx resource kit utility. Setx is a powerful tool with which you can manage the environment variables in NT. This utility has three modes of operation: command line, Registry, and file. The command-line and Registry modes are the most common. You can find that utility in the NT Resource Kit. Good luck! Nick. Nick.
-
Check out: http://www.winnetmag.com/Articles/Index.cfm?ArticleID=5379 Here is the relevent blurb: If you want to use a batch file to assign values to variables, use the Setx resource kit utility. Setx is a powerful tool with which you can manage the environment variables in NT. This utility has three modes of operation: command line, Registry, and file. The command-line and Registry modes are the most common. You can find that utility in the NT Resource Kit. Good luck! Nick. Nick.