1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: DOS - Sleep

Discussion in 'DOS/Other' started by trusp, Feb 11, 2009.

Thread Status:
Not open for further replies.
Advertisement
  1. trusp

    trusp Thread Starter

    Joined:
    Dec 5, 2008
    Messages:
    25
    Hi

    I need to make my batch file(.bat - DOS based file) to sleep for 2 minutes.

    Is there any option to make my batch file to sleep.
    I tried sleep and wait command but it responded as

    'sleep' is not recognized as an internal or external command,
    operable program or batch file.

    'wait' is not recognized as an internal or external command,
    operable program or batch file.

    Please help me asap

    Trusp
     
  2. crashie

    crashie

    Joined:
    Jan 21, 2009
    Messages:
    33
    use the choice command with the /T and /D switches

    choice /? to show options in a command prompt

    Regards,

    Dean
     
  3. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,731
  4. trusp

    trusp Thread Starter

    Joined:
    Dec 5, 2008
    Messages:
    25
    I solved it by using

    sleep 120

    Thank u very much !!!
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/799650