fix the recycling bin option (#32)
* update the recycling bin option Powershell has a module in PS 5.1+ called Clear-Recyclebin that works better than the CMD method - rd /s %systemdrive%\$Recycle.bin * update recycling bin delete command one liner of ComObject in powershell instead of cmd asking for confirmation. adds better backwards compatibility.
This commit is contained in:
committed by
GitHub
parent
82d509129b
commit
15db311801
@@ -384,7 +384,7 @@ actions:
|
||||
-
|
||||
name: Empty trash bin
|
||||
recommend: false
|
||||
code: rd /s %systemdrive%\$Recycle.bin
|
||||
code: Powershell -Command "$bin = (New-Object -ComObject Shell.Application).NameSpace(10);$bin.items() | ForEach { Write-Host "Deleting $($_.Name) from Recycle Bin"; Remove-Item $_.Path -Recurse -Force}"
|
||||
-
|
||||
name: Enable Reset Base in Dism Component Store
|
||||
recommend: true
|
||||
@@ -3347,4 +3347,4 @@ actions:
|
||||
code: |-
|
||||
del /f /q %AppData%\Microsoft\Windows\Start Menu\Programs\Startup\privacy-cleanup.bat
|
||||
copy "%~dpnx0" "%AppData%\Microsoft\Windows\Start Menu\Programs\Startup\privacy-cleanup.bat"
|
||||
revertCode: del /f /q %AppData%\Microsoft\Windows\Start Menu\Programs\Startup\privacy-cleanup.bat
|
||||
revertCode: del /f /q %AppData%\Microsoft\Windows\Start Menu\Programs\Startup\privacy-cleanup.bat
|
||||
|
||||
Reference in New Issue
Block a user