dos command line pipes?
Results 1 to 7 of 7

Thread: dos command line pipes?

  1. #1
    Join Date
    Nov 2000
    Location
    buenos aires
    Posts
    335

    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.

  2. #2
    Join Date
    Jun 2000
    Location
    Oz
    Posts
    3,441
    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

  3. #3
    Join Date
    Feb 2000
    Location
    26.03°N 80.14°W
    Posts
    9,410
    The command you're after is:

       scandisk /all /noninteractive
    Vernon Frazee, Microsoft MVP (Windows - Shell/User)

    Defenses Up!
    Tip: When prompted for a password, give an incorrect one first. A phishing site will accept it; a legitimate one won't.


    Inside Spyware: A Guide to Finding, Removing and Preventing Online Pests


    If you don't keep up with security fixes, your computer|network won't be yours for long.

  4. #4
    Join Date
    Nov 2000
    Location
    buenos aires
    Posts
    335
    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.

  5. #5
    Join Date
    Nov 2000
    Location
    buenos aires
    Posts
    335
    vernon freeze, does that mean that i can just add many commands as long as they`re piped with a `/`
    thank you in advance.

  6. #6
    Join Date
    May 2000
    Location
    Rugby, UK
    Posts
    80
    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

  7. #7
    Join Date
    Nov 2000
    Location
    buenos aires
    Posts
    335
    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
  •