Run Internet Explorer in a loop

@echo off
set zm=1
start "" /b /wait "C:\Program Files\Internet Explorer\iexplore.exe"
:loop
tasklist | find /i "iexplore" > nul
if %errorlevel% neq 0 start "" /b /wait "C:\Program Files\Internet Explorer\iexplore.exe"
if %zm% GTR 0 goto loop

Free disk space script

@echo off
rem set SPACE_LIMIT=200
set /p SPACE_LIMIT=Limit:

for /f “tokens=3” %%i in (‘”dir c: /-c | find /i “bytes free””‘) do set TSPACE=%%i
set FREE_SPACE=%TSPACE:~0,-6%
if %FREE_SPACE% GTR %SPACE_LIMIT% (
echo %FREE_SPACE% ^> %SPACE_LIMIT%
) else (
echo %FREE_SPACE% ^< %SPACE_LIMIT%
)

Script drops last six digits from ‘total bytes free’ line of dir command because of cmd.exe 32-bit integer limitation so a comparision is done using megabytes.