编写一个清理win10系统所有的空文件夹
时间: 2023-03-13 14:16:58 浏览: 180
空文件夹可以使用 Windows 自带的 Disk Cleanup 工具来清理,可以搜索“Disk Cleanup”并运行它,在“Disk Cleanup”中选择要清理的驱动器,然后点击“Clean up system files”,在“Files to delete”中勾选 “Empty folders” 即可。
相关问题
编写一个快速清理win10缓存的脚本
可以使用Windows PowerShell,来快速清理Windows 10的缓存。可以使用以下的脚本:Clear-Item -Path "C:\Windows\SoftwareDistribution\Download\*" -Recurse -ForceClear-Item -Path "C:\Windows\System32\Sru\*" -Recurse -ForceClear-Item -Path "C:\Windows\Temp\*" -Recurse -Force Clear-Item -Path "C:\Users\*\AppData\Local\Temp\*" -Recurse -Force Restart-Service wuauserv
编写一个bat批处理,用来win10 文件夹更改图标 还原默认值
好的,以下是编写的步骤:
1. 首先,打开记事本程序。
2. 把下面的代码粘贴到记事本中:
REG delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIcons" /va /f
REG delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /f
@echo off
taskkill /f /im explorer.exe
attrib -s -h "C:\Windows\System32\imageres.dll"
del "C:\Windows\System32\imageres.dll"
copy "C:\Windows\System32\imageres_original.dll" "C:\Windows\System32\imageres.dll"
attrib +s +h "C:\Windows\System32\imageres.dll"
start explorer.exe
exit
3. 保存文件时,设置文件类型为“所有文件”,文件名为“reset_icon.bat”(或更改为您喜欢的名称)。
4. 将保存的批处理文件复制到您想要更改文件夹图标的文件夹中。
5. 双击批处理文件,它将更改图标为默认值。
希望这可以帮助您!如果您有其他问题,请随时问我。