|
-
July 31st, 2000, 05:01 PM
#1
DOS batch commands and NT
Does anybody know how to set a variable (via a DOS batch file) on NT but keep the variable set even after the DOS command window is closed? This worked fine for Windows 95 and 98 but with NT (and Windows 2000) each session is its own session so variables (including 'path' statements) are lost. Putting in the autoexec or going through the control panel to set an environment variable is not an option. It has to be done within the DOS batch file. Is this possible?
-
July 31st, 2000, 05:41 PM
#2
To set permanent "system" or "user" variables, try SETX.EXE (from the NT Resource Kit) or SETENV from Vincent Fatica's website.
Could also use a .reg file to modify the HKCU\Environment key.
[This message has been edited by Equalizer (edited 07-31-2000).]
-
August 2nd, 2000, 01:59 PM
#3
It looks like these utilities will work for me. Thanks Equalizer.
Originally posted by Ray-zer:
Does anybody know how to set a variable (via a DOS batch file) on NT but keep the variable set even after the DOS command window is closed? This worked fine for Windows 95 and 98 but with NT (and Windows 2000) each session is its own session so variables (including 'path' statements) are lost. Putting in the autoexec or going through the control panel to set an environment variable is not an option. It has to be done within the DOS batch file. Is this possible?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|