Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7188389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:04:25+00:00 2026-05-28T19:04:25+00:00

I have some bat scripts where I have to wait for X seconds, currently

  • 0

I have some bat scripts where I have to wait for X seconds, currently I am just calling sleep which works fine. However, I would like to count to the number that is passed in so I can at least see how long I have left to wait.

But I cannot seem to find how to count to X and output that to the console. Simple I know…

If possible, I would like the numbers to overwrite each other as it counts so that it doesnt fill the screen with numbers.

Can anyone help me here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:04:27+00:00Added an answer on May 28, 2026 at 7:04 pm

    SLEEP is not a standard Windows command.

    If you have a recent version of Windows (ie Vista or better, thanks Neil), you can use the TIMEOUT command (use TIMEOUT /? to get help on usage)

    The TIMEOUT command does exactly what you are asking for. It counts down the seconds until it reaches 0. The user has the ability to press a key to abort the wait and proceed immediately. The /NOBREAK option disables the ability to skip the wait.

    For example, this command will wait for 5 seconds, with a visual countdown.

    TIMEOUT /T 5
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a deployment script (.bat), part of which requires calling other programs and
I have bat-file, that make some operations. How to run this file from Delphi
I have some ASP.NET web services which all share a common helper class they
I have some C# / asp.net code I inherited which has a textbox which
I have an application consisting of many scripts doing some stuff on their own.
We have a few C++ solutions and we run some build scripts using batch
Hi I have been editing my script with some forum help. I just need
I have a bat script which has block1 commands. I call the block1 like
I have a folder /Tables that contain all the table objects scripts. Some of
I have a hundred text files to which I would like to insert the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.