CLI workaround for Windows XP : Doing a pause in a batch script

  • HOME
  • >
  • >
  • CLI workaround for Windows XP : Doing a pause in a batch script
Last Updated: 

👉 This post was initially written in 2006 and refered to specific software versions. When tunning your system, always consider which version you are running. Information below may be outdated. Use it at your own risk.

In our list of "CLI workaround for Windows XP", a missing command is SLEEP or WAIT. For fixing this I suggest you two solution, first is simply a batch workaround using PING command, the second solution use the Windows Server 2003 Ressource Kit tools.

With PING you can produce a fixed delay by testing the loopback address. This can be really usefull if you don’t want (or if you can’t) install extra software.

# Doing an approximative pause of 60 seconds

PING -n 61>nul

Second way is to install the [Windows Server 2003 Resource Kit tools][1] from You will get a SLEEP.exe that will do all the requested stuff.

# Doing a pause of 60 seconds


Enjoy. 😉

Related windows posts that you may like
Running Bash script with Ubuntu on Windows 10 using WSL
No-hassle! Learn how to run Bash on Windows by installing your favorite Linux distribution natively on Windows 10 using Windows Subsystem for Linux, aka WSL.
Files and directories user permissions on Windows XP
How to solve files and directories permissions on windows XP using CACLS.
Determine which Windows OS version is running
How to workaround the lack of command line to sleep or wait some period of time on windows XP. This tips shows, first a batch example using the ping command, second using the Windows Server 2003 Ressource Kit tools with the SLEEP command.