w10install/tools/restart-explorer.cmd
2023-02-24 08:25:11 +01:00

10 lines
206 B
Batchfile

@echo off
echo Killing explorer ...
taskkill /f /im explorer.exe /FI "USERNAME eq %USERNAME%" 2>nul
echo sleeping 2 seconds ...
ping 127.0.0.1 -n 2 >nul 2>&1
echo starting ...
start explorer.exe