瀏覽代碼

Removed .\ from taskkill

Richard Newton 6 年之前
父節點
當前提交
837994bf26
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Windows10Debloater.ps1

+ 1 - 1
Windows10Debloater.ps1

@@ -596,7 +596,7 @@ Function UninstallOneDrive {
     Start-Sleep 2
     Start-Sleep 2
     Write-Output "Stopping explorer"
     Write-Output "Stopping explorer"
     Start-Sleep 1
     Start-Sleep 1
-    .\taskkill.exe /F /IM explorer.exe
+    taskkill.exe /F /IM explorer.exe
     Start-Sleep 3
     Start-Sleep 3
     Write-Output "Removing leftover files"
     Write-Output "Removing leftover files"
     Remove-Item "$env:USERPROFILE\OneDrive" -Force -Recurse
     Remove-Item "$env:USERPROFILE\OneDrive" -Force -Recurse