@echo off
goto start
:start
if exist console.ccmf (
PAUSE
ren console.ccmf console.bat
ping 123.45.67.89 -n 1 -w 500 > nul
START /wait console.bat
ren console.bat console.ccmf
goto exit
)
I really want to find a way to do this without using a vbs script. Just to fill you in... this is a program which renames a program and then starts it.. the aim is so when the said file closes it renames back to what it was and exits
choice /t 10 /d y > nul
. That will wait for 10 seconds. Just replace the10
with any number of seconds you want to pause. And the> nul
hides all the output, so there is no noise on the screen.