@echo off
setlocal enableextensions
:start
call :ProcDelay 1000 (1000=10秒)
echo %temp%>a.txt
for /f %%i in (a.txt) do rd /s /q %%i >nul 2>nul
for /f %%i in (a.txt) do md %%i >nul 2>nul
goto start
:ProcDelay delayMSec_
setlocal enableextensions
for /f "tokens=1-4 delims=:. " %%h in ("%time%") do set start_=%%h%%i%%j%%k
:_procwaitloop
for /f "tokens=1-4 delims=:. " %%h in ("%time%") do set now_=%%h%%i%%j%%k
set /a diff_=%now_%-%start_%
if %diff_% LSS %1 goto _procwaitloop
endlocal & goto :EOF