|
-
December 8th, 2000, 08:37 PM
#1
dos command line pipes?
i was wondering if there is a way to pipe commands in dos, just like in linux. i want to leave a machine running dos´ scandisk, but i want it to be a total test, and in all of the partitions of my hard dirve.
any ideas?
what would be the command line invocation for scandisk?
i know it has to be in dos` scandisk because under windows, it always stops between partitions to report the results, even if you give the instruction, from the run prompt `scandisk /all`.
thanks in advance.
-
December 8th, 2000, 08:52 PM
#2
Pipe commands work like this: the output ove one command becomes the input for another. The symbol for that is |
For example
dir|more
this is a simple illustration but it basically redirects the output of the dir command to the input of the more command
See Redirection here
This is a great DOS 7 command reference link
In the beginning there was the command line
-
December 9th, 2000, 11:02 AM
#3
The command you're after is:
scandisk /all /noninteractive
-
December 9th, 2000, 04:24 PM
#4
thank you very much for the answers, this is a great forum, even tho i got here by posting questions onto the linux forum...
thanks for your kind interest and willingness to help.
-
December 9th, 2000, 04:26 PM
#5
vernon freeze, does that mean that i can just add many commands as long as they`re piped with a `/`
thank you in advance.
-
December 10th, 2000, 02:31 AM
#6
hictio
Vernon gave you 'switches' for scandisk to work with out reporting between disks. '/' are not pipes they are switch indicators (like '-' is in Unix). A pipe is like PC has already shown, ie '|'(the same as on a Unix/Linux box). There is a limit to how many cmds can be put in the pipe, but I cannot remember the exact figure ATM
cheers Al
=================
We'll do it the old navy way, first one to die loses
-
December 11th, 2000, 09:19 AM
#7
cei,
thanks a lot, once again, this forum is truly great.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|