Computing.Net > Forums > Programming > pause duration at end of batch

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

pause duration at end of batch

Reply to Message Icon

Name: JimW
Date: August 12, 2002 at 19:22:26 Pacific
Comment:

At the end of my small batch file, I have inserted "cls" and "Exit" The batch file closes so fast at the end of its function that I hardly even see it open in the first place. Is there a command to pause for about 5 seconds before returning to windows just long enough to see...for example...the line.."copy successful"???? thanks ...JimW



Sponsored Link
Ads by Google

Response Number 1
Name: NULL
Date: August 12, 2002 at 19:39:46 Pacific
Reply:

Include the following code on the last line of your batch file:

choice /N /T:N,5>NUL


0

Response Number 2
Name: NULL
Date: August 12, 2002 at 19:43:30 Pacific
Reply:

Just forgot to tell that it must be inserted before cls and exit

choice /N /T:N,5>NUL
cls
exit



0

Response Number 3
Name: JimW
Date: August 13, 2002 at 05:35:51 Pacific
Reply:

Null,
Thanks for response. I'll try this right away. Most of the instructional material on Batch files is written well above novice level. Most witers assume people writing batch files are more familiar with the language and not just wanting to learn. Thanks again
JimW


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: pause duration at end of batch

End of file in VB 6 www.computing.net/answers/programming/end-of-file-in-vb-6/5572.html

Sed:Add text to end of line in file www.computing.net/answers/programming/sedadd-text-to-end-of-line-in-file/15109.html

Visual Basic 6.0 www.computing.net/answers/programming/visual-basic-60/18485.html