Created
February 23, 2022 21:05
-
-
Save SightSpirit/da5d87db1a0102caef9d9486023cca75 to your computer and use it in GitHub Desktop.
Simple Windows batch file that restarts Windows Explorer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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