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
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???
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.
Summary: Hello, Does anyone know how to set a dos variable using a field from a that is within a text file? I believe there might be a way using numbered variables, but I havent seen much doco on them. Example...
Summary: How can I read a variables in PC-DOS? Strangely things that work in MSDOS wont work in PC-DOS: Set this=that echo %this% This works in Ms-Dos , but PC-Dos doesnt!? Try it... Anyone knows why? I.love...
Summary: %temp% is a reserved DOS variable, so choose something else. To get the current directory into a variable, see #27 on this page http://bigfoot.com/~batfiles/main/batchfaq.htm...