restarting explorer
@echo off taskkill /f /IM explorer.exe if ERRORLEVEL 1 goto :err start "" "explorer.exe" exit :err echo ----------- failed ----------- pause exit