Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Typing more than one command at the dos prompt  (Read 2168 times)

0 Members and 1 Guest are viewing this topic.

aldejais

    Topic Starter


    Starter

    Typing more than one command at the dos prompt
    « on: December 27, 2007, 07:38:31 PM »
    Anyone familiar with how to type more than one command at the Dos prompt.  I have to enter 3 commands and the Enter key does not move me to the next line.  Is there a way to type all 3 lines on one line?

    DosItHelp



      Intermediate
      Re: Typing more than one command at the dos prompt
      « Reply #1 on: December 28, 2007, 12:12:48 AM »
      aldejais,

      Two ways:
      1. Use "&" to separate commands in a single line, i.e.:
      Quote
      ver & echo.two & echo.three

      2. Start with an opening bracket.  Now Enter will move to the next line asking form "More?" until you close the bracket.
      Quote
      C:\>( ver
      More? echo.two
      More? echo.three
      More? )

      DOS IT HELP?