|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
pausing cmd file
Okay,
I have a .cmd file which does various things at startup, but, I want it to be able to write a line in to pause it for a number of seconds, before it closes. So, I could type a few lines in with a number of (milli?)seconds and it will wait for the time to elapse before continuing. Also, how can you keep it open after it executes? thanks,c omp |
|
#2
|
|||
|
|||
|
Are you looking for something like PAUSE, or do you need something that does not require user intervention?
|
|
#3
|
||||
|
||||
|
i just need a line or two that will pause the command prompt for about 2 seconds so the user can read the output before it continues.
the user doesn't need to type anything. |
|
#4
|
|||
|
|||
|
Why not use the pause command. It will display your information and when the user is done the user can hit any key.
|
|
#5
|
|||
|
|||
|
The way i do this is to run a command which will take a few seconds to complete, and redirect the output to nul, e.g.
ping -n 10 localhost > nul Ping is handy, as you can change the value of -n to change the pause time. Hope this helps. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Windows Help > pausing cmd file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|