| 关键词: systemdrive del userprofile temp windir 权限 大牛 Settings Local ecent |
今天看到独自等待大牛的文章,使用网上的 "清理系统垃圾批处理" 后,win下的temp文件夹权限重置。 我也碰到过,多谢提醒,temp权限重置原因在于bat中有这句: rd /s /q %windir%\temp & md %windir%\temp 删除了设置好的temp,又重新建立了一个。所以权限被重置了,去掉这一句即可,挺不错的批处理。 @echo off del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %systemdrive%\*.log del /f /s /q %systemdrive%\*.gid del /f /s /q %systemdrive%\*.chk del /f /s /q %systemdrive%\*.old del /f /s /q %systemdrive% ecycled\*.* del /f /s /q %windir%\*.bak del /f /s /q %windir%\prefetch\*.* rd /s /q %windir%\temp & md %windir%\temp del /f /q %userprofile%\cookies\*.* del /f /q %userprofile% ecent\*.* del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" del /f /s /q "%userprofile%\Local Settings\Temp\*.*" del /f /s /q "%userprofile% ecent\*.*" |
|
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系
[邮箱地址] 删除
|