Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
@ECHO OFF goto :EndOfRemarks --- remarks section --- desired process: loop wait 2 minutes select directory (if exists) from receiver move selected directory to results end loop --- end remarks section --- :EndOfRemarks SETLOCAL ENABLEDELAYEDEXPANSION SET BaseDir="C:\task\receiver" SET DestDir="C:\task\results" SET resultDir= SET resultDirrace= SET resultDirborra= FOR /D %%F IN (%BaseDir%\*.*) DO ( TIMEOUT /T 2 /NOBREAK SET resultDir="%%F" SET resultDirborra=%%F SET resultDirrace="%%~nxF" MOVE /Y !resultDir! %DestDir% REM DEL !resultDirborra!\*.* /S /F /Q timeout /T 1 /nobreak REM rd /s /q !resultDir! ECHO ... Directory moved: !resultDirrace! ) REM explicitly end local changes caused by script (optional) REM done implicitly at end of script if not specified ENDLOCAL massive.bat
Join the community of 500,000 technology professionals and ask your questions.