Computing.Net > Forums > Disk Operating System > Manual for DOS?

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.

Manual for DOS?

Reply to Message Icon

Name: Jay S
Date: October 28, 2003 at 09:01:58 Pacific
OS: XP
CPU/Ram: Pentium 1G/256M
Comment:

Where can I find a manual for DOS? The Help screens provided with XP give you all the details on every keyword, but what I need is information on the operators like =, :=, |, <, >, %.

I'd like to be able to set a variable to the result of a command, for example

set myvar = dir myfile/b

but of course as written above it does not work.



Sponsored Link
Ads by Google

Response Number 1
Name: nathan
Date: October 28, 2003 at 12:48:59 Pacific
Reply:

dir myfile/b > %myvar%

I think this will work. I dont know, its late, i'm out.

oh and for web sites i would suggest www.computerhope.com or www.ericphelps.com

but for xp things are a little different. i learned most of what i know just from reading xp responses on this forum. feel free to ask some more questions.

btw: what is the ":=" operator?


0

Response Number 2
Name: x86
Date: October 28, 2003 at 16:05:41 Pacific
Reply:

There is no M$-DOS in XP it is emulated, XP like all the NT family have COMMAND PROMPT

http://www.ss64.com/nt/

http://senac.com/forums/4356/bin/1988.html


0

Response Number 3
Name: IVO
Date: October 29, 2003 at 02:24:16 Pacific
Reply:

To do what you posted you need to use (in a batch) the following compound statement joining the For command with the Dir and Set one.

For /F "tokens=*" %%A in ('Dir MyFile /B') Do Set MyVar=%%A

As you can see it is no matter of operators or redirection symbols; batch scripts have evolved in a non coherent mode from early plain DOS to the actual extended Windows command language.
As stated by x86 there is no Dos at all in NT based systems, that does not mean you don't need a strong knowledge of the basic DOS batch language, but that does not suffice.
I can't suggest you a straight way to grasp the knowledge you like to get, follow the tips of Nathan and, while cumbersome, walk through the /? help at command prompt for commands; it is a powerfull way to get some ligth in the nigthmare.


1

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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: Manual for DOS?

I want Quick Basic 4.5 for DOS www.computing.net/answers/dos/i-want-quick-basic-45-for-dos/3846.html

IBM PC Card Director for DOS v 4.07 www.computing.net/answers/dos/ibm-pc-card-director-for-dos-v-407/15713.html

Fox Pro for dos www.computing.net/answers/dos/fox-pro-for-dos/6857.html