replacement for 'sleep' in batch file for windows server 2008

Posted on 2009-12-23
Last Modified: 2012-05-08
sleep doesnt work

wait doesnt work
Question by:rgb192
    LVL 26

    Expert Comment

    try adding PING -n 11 >NUL to your batch script.

    This will effectively cause a script to pause for 10 seconds.

    If you need different timing, just change the number after -n to how many seconds + 1.

    Author Comment

    no errors... now script doesnt run the ping command
    LVL 33

    Expert Comment


    The > Nul will hide the output...  you can remove this if you want to see the ping response...

    what do you mean the script doesn't run the ping command?  

    LVL 33

    Accepted Solution


    Author Closing Comment


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Here's a useful script that will automatically delete ALL user profiles that are on a Windows Server 2008/R2 computer.   WARNING! This is a dangerous operation, designed for use by an administrator who needs to do a complete purge; for instance a…
    New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
    This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
    This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now