Skip to content

Instantly share code, notes, and snippets.

@SightSpirit
Created February 23, 2022 21:05
Show Gist options
  • Save SightSpirit/da5d87db1a0102caef9d9486023cca75 to your computer and use it in GitHub Desktop.
Save SightSpirit/da5d87db1a0102caef9d9486023cca75 to your computer and use it in GitHub Desktop.
Simple Windows batch file that restarts Windows Explorer
@ECHO OFF
ECHO "Are you sure you want to restart explorer.exe?"
SET /P YN="Y/N> "
IF /I %YN%==Y (
TASKKILL /F /PID explorer.exe && START %SYSTEMROOT%\explorer.exe
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment