How to restart explorer.exe with a batch file
By Emma Terry •
I need a batch file to stop and restart explorer.exe, but I don't know all the commands needed. I know if you select it from the task manager you can restart it, but I want a file on my desktop I can double-click. I'm using Windows 10 Professional.
02 Answers
Pretty simple to do this and pretty self-explanatory:
taskkill /im explorer.exe /f
start explorer.exe
exitThe /im makes it look for a process name. /f says to kill it forcefully, however your force is as powerful as the permissions you have.
To restart Explorer in Windows 10, I created a shortcut with the Target:
powershell -command "gps explorer | spps"gps is the Alias for Get-Process
spps is the alias for Stop-Process