@echo off
cd /d %~dp0
set LockFile=nolock
:Loop
if exist %LockFile% (
if exist %LockFile%/ (
timeout /t 3 > nul
goto Loop
)
rem 存在する場合そのまま
) else (
echo 存在しない
type nul > %LockFile%
timeout /t 3 > nul
goto Loop
)
rem ------------------
pause