Computer Hope

Microsoft => Microsoft DOS => Topic started by: Flux on February 01, 2009, 08:38:47 PM

Title: Dos newbie
Post by: Flux on February 01, 2009, 08:38:47 PM
hi there, i'm a beginner in Dos tho i learned some in my class, ya know intermediate commands like cd, md, rd but what i'm really interested in are commands that i could really use. i wanna be a DOS expert.   ???
Title: Re: Dos newbie
Post by: BC_Programmer on February 01, 2009, 08:44:37 PM
"commands you could really use"...


gee I wonder what that means. Last time I checked managing files was something that could be used.
Title: Re: Dos newbie
Post by: mikel on February 01, 2009, 08:45:12 PM
low meg musta kana????wahahahaha
Title: Re: Dos newbie
Post by: BC_Programmer on February 01, 2009, 08:48:38 PM
low meg musta kana????wahahahaha

I tried my best to make sense of this, but the best I can come up with is it is some sort of off-topic reference to muskeg.
Title: Re: Dos newbie
Post by: Flux on February 01, 2009, 10:16:56 PM
"commands you could really use"...


gee I wonder what that means. Last time I checked managing files was something that could be used.
what i mean is that,commands that are used by experts. :o
Title: Re: Dos newbie
Post by: Flux on February 01, 2009, 10:28:59 PM
low meg musta kana????wahahahaha

I tried my best to make sense of this, but the best I can come up with is it is some sort of off-topic reference to muskeg.
u got any ideas??...  a list would be helpful.
Title: Re: Dos newbie
Post by: Dusty on February 01, 2009, 11:09:49 PM
Flux - Welcome to the CH forums.

Get used to it - you cannot access Dos in Win XP, Win XP is not built on Dos.  What you can use is a Windows program named Cmd.exe which is a Dos emulator and runs in a window so to call it Dos is a misnomer.  You can, however, run things like DosBox.

Here (http://www.ss64.com/nt/) is a list of NT commands for use at the XP Command Line or in scripts.  Some are available only in XP Pro, others must be extracted from the Resource Kit.

Good luck.
Title: Re: Dos newbie
Post by: xcharge50 on February 02, 2009, 05:22:31 AM
type in the cmd (assuming you want to use the virtual dos):
help

It will show you some basic command
Title: Re: Dos newbie
Post by: BatchFileCommand on February 02, 2009, 06:06:52 AM
Google for loops. Those are useful.
Title: Re: Dos newbie
Post by: macdad- on February 02, 2009, 06:27:04 AM
ping -n 1 -w 1000 1.1.1.1 >nul

can be used as a wait command, or just to ping a computer or server on your network.

the 1000 is the timeout, that makes PING a excellent wait command.
and the 1000, is in milliseconds so that would make PING wait for 1 sec.
Title: Re: Dos newbie
Post by: BC_Programmer on February 02, 2009, 07:07:05 AM
the thing I've never really liked about the "ping" method of "sleeping" is that it's a kludge- It works, but it's sort of like how you used to be able to print files in DOS using COPY DOC.TXT PRN.
Title: Re: Dos newbie
Post by: fireballs on February 02, 2009, 07:13:16 AM
I use timeout for pauses but that only works in Vista i think.

FB
Title: Re: Dos newbie
Post by: macdad- on February 02, 2009, 12:34:07 PM
Ping is good as a Wait command, if you have a computer with Win 2000 or older that doesnt have Sleep
Title: Re: Dos newbie
Post by: BC_Programmer on February 02, 2009, 12:37:33 PM
Ping is good as a Wait command, if you have a computer with Win 2000 XP or older that doesnt have Sleep


Fixed  ;D
Title: Re: Dos newbie
Post by: Dias de verano on February 02, 2009, 12:40:51 PM
Ping is good as a Wait command, if you have a computer with Win 2000 XP or older that doesnt have Sleep

And you don't know how to download & deploy a Resource Kit.
Title: Re: Dos newbie
Post by: macdad- on February 02, 2009, 04:09:27 PM
*Smack head*
didnt know you could get it on Microsofts website.  :P
Title: Re: Dos newbie
Post by: Dias de verano on February 03, 2009, 12:17:39 AM
*Smack head*
didnt know you could get it on Microsofts website.  :P

http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
Title: Re: Dos newbie
Post by: macdad- on February 03, 2009, 12:41:22 PM
dang thats got a lot of tools  :o
and they are all command line?
Title: Re: Dos newbie
Post by: Dias de verano on February 03, 2009, 01:04:03 PM
dang thats got a lot of tools  :o
and they are all command line?

Many of them are.

Title: Re: Dos newbie
Post by: macdad- on February 04, 2009, 12:32:44 PM
awesome, gotta download this.
and thanks for the link  8)
Title: Re: Dos newbie
Post by: Flux on February 08, 2009, 06:47:06 PM
Flux - Welcome to the CH forums.

Get used to it - you cannot access Dos in Win XP, Win XP is not built on Dos.  What you can use is a Windows program named Cmd.exe which is a Dos emulator and runs in a window so to call it Dos is a misnomer.  You can, however, run things like DosBox.

Here (http://www.ss64.com/nt/) is a list of NT commands for use at the XP Command Line or in scripts.  Some are available only in XP Pro, others must be extracted from the Resource Kit.

Good luck.
dude thanks for the link. i really appreciate your help. im sure these would do.
Title: Re: Dos newbie
Post by: GuruGary on February 08, 2009, 11:25:22 PM
ping -n 1 -w 1000 1.1.1.1 >nul

can be used as a wait command, or just to ping a computer or server on your network.

the 1000 is the timeout, that makes PING a excellent wait command.
and the 1000, is in milliseconds so that would make PING wait for 1 sec.

It is actually a very bad practice to ping an IP address that you don't administer or have control over.  Besides not being polite (depending on how it is used and how often it could be considered a denial of service attach which I know is not your intent), it is not reliable.  For example, I assume by your example that your are expecting 1.1.1.1 to not respond to your ping (ICMP echo request). If the owner of that IP decides to one day enable ICMP echo for that IP address, then your command above would only pause for a few milliseconds.  It is much better to ping something that you have control over, such as localhost, or 127.0.0.1.  You can use
Code: [Select]
ping -n 2 localhost >NULto pause for about 1 second (the number should be n+1 where n is the number of seconds to pause because the 1st reply should be instant, and the others will wait 1 second by default).

I hope nobody takes offense to this ... just trying to point out a better way.
Title: Re: Dos newbie
Post by: macdad- on February 09, 2009, 11:27:15 AM
good point