Setting DOS environment variables

S

Salad

How can I set DOS environment variables upon logging into Windows or the
network. Currently the environment variables are being set in the
autoexec.nt batch file but they are global for all users...ex:

SET FULL_NAME=JOE BLOW
SET LOGIN_NAME=JOE

I would like to set the user's login name and full name and a couple of
other settings. I noticed that USERNAME is a setting when I enter SET
from the DOS command line.

Should I create a batch file in the autoexec that calls a batch file in
the user's profile directory based upon the USERNAME?

This was easy for me to do with Novell since there was a User login
script that was executed upon logging in. Is there something similar in
WinXP?
 
S

Salad

Wesley said:
setx.exe is also part of Windows Support Tools.

Windows Support Tools is on the XP CD.

Drive letter:\SUPPORT\TOOLS

Along with many useful tools built into the Windows operating system, over
40 additional Support Tools are included on the Windows CD.

To install Windows Support Tools
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/tools_howto.mspx

Windows Support Tools
http://www.microsoft.com/windowsxp/...p/home/using/productdoc/en/tools_overview.asp

Using the Windows XP support tools
http://support.microsoft.com/default.aspx?scid=/directory/worldwide/en-gb/utility.asp

Windows XP Service Pack 2 Support Tools
http://www.microsoft.com/downloads/...76-9bb9-4126-9761-ba8011fabf38&displaylang=en
Thanks all for the info.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top