公安机关辅警管理办法:如何用cmd命令行来删除上网历史记录

来源:百度文库 编辑:神马品牌网 时间:2024/05/05 13:14:57
请问如何用cmd命令行来删除上网历史记录
我想写一个.bat文件,一键运行.
DEL/Q/S "C:Documents and Settings<用户名>Local SettingsHistory
这句运行的结果是:进程无法访问文件,因为另一个程序正在使用此文件。
请问还有别的办法吗?谢谢

假设要删除C:Documents and Settings<用户名>Local SettingsHistory这个文件夹下的文件

在开始-运行,输入cmd,打开cmd命令框,输入如下命令:
DEL/Q/S "C:Documents and Settings<用户名>Local SettingsHistory
DEL/Q "C:Documents and Settings<用户名>Cookies
DEL/Q/S "C:Documents and Settings<用户名>Local SettingsTemporary Internet Files"

或者可以用这个命令行,清除ie缓存和ie加载项命令:
cmd /c del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" & del /f /s /q "%userprofile%\Local Settings\Temp\*.*" & reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Ext /f & reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects" /f

在批处理文件中加入如下命令行:

DEL/Q/S "C:Documents and Settings<用户名>Local SettingsHistory
DEL/Q "C:Documents and Settings<用户名>Cookies
DEL/Q/S "C:Documents and Settings<用户名>Local SettingsTemporary Internet Files"

其他一些临时文件夹也可以同理进行清理

请教下Q/S是什么意思?

有上网助手啊