Does pause exist in cmd?
Solved
frans003
Posted messages
616
Status
Membre
-
frans003 Posted messages 616 Status Membre -
frans003 Posted messages 616 Status Membre -
Hello,
I created a cmd program but I would like this:
if you can answer one of the 2 questions I'm super happy =)
1.
I'm looking for how to first have the text by exe slt appear and then 5 seconds later euh ca va? and then it goes completely black and after 10 seconds bienvenue appears
2. I have a list and I would like it to be like this
echo salut voici la liste
wait 10 sec (how do we do that)
echo 1.monter
wait 10 sec
echo 2.descendre
wait 10 sec
echo 3.arriver
wait 10 sec
echo voila
so how do we do this timing??(code)
THANK YOU!!
I created a cmd program but I would like this:
if you can answer one of the 2 questions I'm super happy =)
1.
I'm looking for how to first have the text by exe slt appear and then 5 seconds later euh ca va? and then it goes completely black and after 10 seconds bienvenue appears
2. I have a list and I would like it to be like this
echo salut voici la liste
wait 10 sec (how do we do that)
echo 1.monter
wait 10 sec
echo 2.descendre
wait 10 sec
echo 3.arriver
wait 10 sec
echo voila
so how do we do this timing??(code)
THANK YOU!!
Configuration: Windows XP Internet Explorer 7.0
6 réponses
In reality, there is no timer command for leatch, but we can use ping, which, when instructed with multiple requests, places a 1-second delay between each request instantly.
So:
@echo off
cls
echo Hi! Here is the list
ping 127.0.0.1 -n 11 > NUL 'ping to the target 127.0.0.1 which is your own PC to make it faster
cls
echo 1. Go up
ping 127.0.0.1 -n 11 > NUL 'then -n 11 which will select 11, so 10 seconds^^
cls
echo 2. Go down
ping 127.0.0.1 -n 11 > NUL 'and finally > NUL to hide this step
cls
echo 3. Arrive
ping 127.0.0.1 -n 11 > NUL
cls
echo There you go
pause
So:
@echo off
cls
echo Hi! Here is the list
ping 127.0.0.1 -n 11 > NUL 'ping to the target 127.0.0.1 which is your own PC to make it faster
cls
echo 1. Go up
ping 127.0.0.1 -n 11 > NUL 'then -n 11 which will select 11, so 10 seconds^^
cls
echo 2. Go down
ping 127.0.0.1 -n 11 > NUL 'and finally > NUL to hide this step
cls
echo 3. Arrive
ping 127.0.0.1 -n 11 > NUL
cls
echo There you go
pause
Thank you very much!!!!!!!!!!!!!!!!!!
Just one last question, how do you make the beep in a bat file in cmd it's ^G but how to put that in a bat??
THANKS a lot!!!!!!!
Just one last question, how do you make the beep in a bat file in cmd it's ^G but how to put that in a bat??
THANKS a lot!!!!!!!
I'm sorry, I remember trying a lot of things in batch, without ever managing to get any sound out of my PC, I'm sorry.