@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
Use the
CALLfunction.Startis really for launching windowed programs and opens another console, CALL stays in the one console window already open.