Click here to Skip to main content
15,892,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If i use code to simulate timer countdown
For example ...500 499 498 etc..
And i use ping to count for this
How to pause counting in the command "ping"

What I have tried:

I try to do something and research answers
Posted
Updated 13-Oct-19 4:23am

1 solution

If you're looking to pause the "Reply from..." output by the PING command, you can't. PING has no facility to pause its operation.

You would have to write your own PING command to accomplish this.
 
Share this answer
 
Comments
MasterGamerFX 14-Oct-19 11:16am    
How to create timer with pause/continue options?
Can give me example please?
Dave Kreskowiak 14-Oct-19 11:38am    
You're going to have to be a lot more specific than that.

Are you still talking about doing this in a batch file? The only way to pause for a time is the Timeout command. Just type Timeout /? at a CMD prompt for how to use it.
MasterGamerFX 15-Oct-19 9:34am    
You right , but the timeout command is stuck my code fllow , therefore i want to use the timer if it possible ?

How i could create button in batch?
Dave Kreskowiak 15-Oct-19 11:00am    
You can't. Batch files do not support an "event driven", i.e.: on a Timer tick, format.

You cannot do what you apparently want to do with a batch file.

You still haven't described what you're really trying to do with this.
\
MasterGamerFX 15-Oct-19 11:55am    
Just i want to pause it counting with a some keys like c+t combination

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900