• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Insert pause in batch file

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Insert pause in batch file

    I'm writing a DOS batch file, and want it to pause for 5 seconds between two particular instructions, but I'm buggered if I can find a way to do it.

    Any ideas?
    ǝןqqıʍ

    #2
    As DOS is shi*e there's no native way of doing it.

    You'll need sleep.exe from the 2003 res kit.
    Eat Right, Exercise, Die Anyway.

    Comment


      #3
      pause
      "Never argue with stupid people, they will drag you down to their level and beat you with experience". Mark Twain

      Comment


        #4
        Originally posted by scooterscot View Post
        pause
        C:\>pause /?
        Suspends processing of a batch program and displays the message
        Press any key to continue . . .
        Eat Right, Exercise, Die Anyway.

        Comment


          #5
          Good grief, thought I was CUK's old fart. (After zeitghost of course) Agree with last. Also can you use GOTO, IF and TIME somehow?
          bloggoth

          If everything isn't black and white, I say, 'Why the hell not?'
          John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

          Comment


            #6
            sleep.exe has been around a lot longer than the 2k3 resource kit - it was part of the NT3.5 reskit from links I can see - and I can remember it from around then as well!
            Should be easy enough to get hold of.... out on a variety of websites.

            Comment

            Working...
            X