Computing.Net > Forums > Disk Operating System > dos variables

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

dos variables

Reply to Message Icon

Name: shahzad
Date: November 5, 2003 at 06:30:34 Pacific
OS: MS DOS
CPU/Ram: P3 \ 256mb
Comment:

Hi - I'm using the SET command to set a variable which works fine...execpt when the dos window is closed and reopened. is there a way to set a variable so that it stays until changed\removed???



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: November 5, 2003 at 07:26:27 Pacific
Reply:

Depends on the Windows version you are running.
If you are under Windows 9X/ME you have to set your environment variables in the Autoexec.bat starting the system to have them persistent. In Windows NT/2K/XP (NT kernel systems without real DOS) the issue is more complex. Otherwise the variables are limited to the current DOS Window session.


0
Reply to Message Icon

Related Posts

See More


Boot From Usb-cdrom Naming directory with cur...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: dos variables

setting a dos variable from text file www.computing.net/answers/dos/setting-a-dos-variable-from-text-file/7785.html

PC-DOS variables read www.computing.net/answers/dos/pcdos-variables-read/15791.html

DOS Batch: DOS command into variable www.computing.net/answers/dos/dos-batch-dos-command-into-variable/3095.html