-
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.
-
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
-
The command you're after is:
scandisk /all /noninteractive
-
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.
-
vernon freeze, does that mean that i can just add many commands as long as they`re piped with a `/`
thank you in advance.
-
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
-
cei,
thanks a lot, once again, this forum is truly great.