batch/ wait

Posted on 2010-01-01
Last Modified: 2012-05-08

How  can i executive first line of command , then  wait  10 seconds , then execute others

cd Y:\
md Y:\FoxproserverBackup\%date:~0,4%%date:~5,2%%date:~8,2%
xcopy /Y /Q /S Z:\HKMDATA Y:\FoxproserverBackup\%date:~0,4%%date:~5,2%%date:~8,2%

Question by:candychan611
    LVL 95

    Accepted Solution

    You can ping.

    cd Y:\
    ping -n 10
    md Y:\FoxproserverBackup\%date:~0,4%%date:~5,2%%date:~8,2%
    xcopy /Y /Q /S Z:\HKMDATA Y:\FoxproserverBackup\%date:~0,4%%date:~5,2%%date:~8,2%

    Though I prefer using a sleep utility, you'd need to download it.
    LVL 51

    Expert Comment

    by:Bill Prew
    Some good variety of approaches discussed on these pages:

    LVL 12

    Expert Comment

    Hi there;

    As leew suggests ping does the job.

    or you can use the following python script. If you have python installed.
    import time, sys

    There are lots of opinions in stackoverflow:

    Best regards.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    This article was inspired by a question here at Experts Exchange ( The requirements stated in that question are (1) reduce the file size of a large number of…
    Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    733 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