Skip to content

Commit 9d0dc9b

Browse files
authored
Update Script.bat
1 parent ea2c999 commit 9d0dc9b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Script.bat

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ echo.
439439
@echo off
440440
cd/
441441
del *.log /a /s /q /f
442-
taskkill /f /im explorer.exe
442+
powershell taskkill /F /IM explorer.exe
443443
timeout 2 /nobreak>nul
444444
DEL /F /S /Q /A %LocalAppData%\Microsoft\Windows\Explorer\thumbcache_*.db
445445
DEL /f /s /q %systemdrive%\*.tmp
@@ -459,7 +459,9 @@ DEL /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
459459
DEL /f /s /q "%userprofile%\Local Settings\Temp\*.*"
460460
DEL /f /s /q "%userprofile%\recent\*.*"
461461
timeout 3 /nobreak>nul
462-
start explorer
462+
Invoke-Command COMPUTERNAME -command{Stop-Process -ProcessName Explorer}
463+
Invoke-Command COMPUTERNAME -command{Start-Process -ProcessName Explorer}
464+
powershell Start explorer.exe
463465
cls
464466
@echo
465467
net stop wuauserv
@@ -514,7 +516,6 @@ explorer.exe %USERPROFILE%\Desktop\QuickBoostOptionalTweaks
514516

515517

516518
:end
517-
start explorer
518519
cls
519520
Echo. Restart Your PC!.
520521
echo.

0 commit comments

Comments
 (0)