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?
