SLEEP Not Working In Batch File

IT Support Forum Forums Windows Windows 10 Troubleshooting SLEEP Not Working In Batch File

Viewing 0 reply threads
  • Author
    Posts
    • #1824
      Webmaster
      Keymaster

      If the SLEEP command doesn’t work in your batch file, this is because you need to install the Windows Resource kit. SLEEP doesn’t seem to be included in the commands for Windows 10 out of the box.

      The best way to fix this is to use the TIMEOUT command instead. To add a 1 second delay in your batch file, use this command:

      timeout /t 1

      The TIMEOUT command is a bit more configurable than the SLEEP command and is therefore better to use in batch files.

      ❗ Note: TIMEOUT will not work on older operating systems (Pre Vista, I think).

Viewing 0 reply threads
  • You must be logged in to reply to this topic.