Discussion Locked

Adding Enviornment Variables

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is there an easy way to enter enviornmet variables (Win2k) so that I don't have to manually type them in for every PC that requires them? Maybe a batch file or a registry entry?

7 replies

by nschulz

Look at the setx command from the win2k resource kit. Use a login script if users are loginning into the network.

Thanks Norm

by joseph moore

Yes. You can use the PATH statement in a BAT file (or logon script) to add to the existing PATH statement (where all environmental variables are kept).
So, if you want to add C:\Temp\Test to the PATH of every workstation, the syntax would be:
PATH=PATH;C:\Temp\Test

If you want to add more than 1 directory, just separate them with semicolons ";"

Hope this helps

by fenaikh

Hi
If you need it for a specific users then use login scripts if they are hooked to a network
else
if It is for specific machine then Put it in each machine Autoexec.bat file.

Good luck

Mohamed

Environment Variables in Windows NT (Q100843)
The information in this article also applies to win2k

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q100843

How to Specify Additional Environment Space under Windows NT (Q158141)
The information in this article also applies to win2k

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q158141

Managing NT Environment Variables
http://www.winnetmag.com/Articles/Index.cfm?ArticleID=5379

Environmental and System Variables
http://www.labmice.net/scripting/variables.htm

UniLogon.bat

http://www.winscriptingsolutions.com/Articles/Index.cfm?ArticleID=8606

***Very Important NOTE *********
After you copy the URL a space or a %20 maybe gets inserted in the URL when you paste it into your browser. Delete any spaces or such characters from the URL for the page to be loaded.

This discussion is closed to new replies.