找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 23684|回复: 9

[系统相关] 批处理如何恢复禁用的IE历史记录?

[复制链接]
发表于 2013-9-7 08:49:50 | 显示全部楼层 |阅读模式
请问:用以下命令禁止了向History加入任何文件,也就是禁用了IE历史记录,那么如何恢复呢?
  1. attrib +r "%userprofile%\Local Settings\History\*.*" /s /d>nul
复制代码
发表于 2013-9-7 09:13:35 | 显示全部楼层
attrib -r "%userprofile%\Local Settings\History\*.*" /s /d
 楼主| 发表于 2013-9-7 09:30:05 | 显示全部楼层
回复 2# batman


    老师,不行呀!
发表于 2013-9-7 10:10:21 | 显示全部楼层
attrib -r "%userprofile%\Local Settings\History" /s /d
 楼主| 发表于 2013-9-7 10:29:32 | 显示全部楼层
回复 4# batman
我也忘了用了以下哪个命令,开始是历史记录的地方只有 History.IE5一个文件,不能产生历史记录,现在是历史记录处一片空白,什么都没有,如何恢复正常呀?


   

1、彻底屏蔽历史记录.bat  文件内容是:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "History" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Local Settings\History//\"


2、彻底屏蔽历史记录.ini  文件内容是:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
"Save_Session_History_On_Exit"="yes"
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs [8]


3、bat批处理删除上网记录:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /f /v "History" /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Local Settings\History//\"
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs"
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /f /v "Save_Session_History_On_Exit" /t REG_SZ /d "yes"
echo HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURL [8]>tmp.ini
regini tmp.ini
If "%ERRORLEVEL%"=="0" del tmp.ini
 楼主| 发表于 2013-9-7 10:40:19 | 显示全部楼层
现在又是这样,但还是没有产生历史记录!
 楼主| 发表于 2013-9-7 16:32:30 | 显示全部楼层
救救我的IE呀!
发表于 2013-9-7 17:11:54 | 显示全部楼层
希望能帮到你

  1. @echo off
  2. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v History /t reg_expand_sz /d "%%USERPROFILE%%\Local Settings\History" /f
  3. reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v Save_Session_History_On_Exit /t reg_sz /d no /f
复制代码

评分

参与人数 1技术 +1 收起 理由
ww0000 + 1 谢谢老师的帮助!

查看全部评分

 楼主| 发表于 2013-9-9 10:24:14 | 显示全部楼层
回复 9# batman


    谢谢,老师的代码已经解决问题了!!!
 楼主| 发表于 2013-9-9 15:40:52 | 显示全部楼层
回复 4# batman


    请教老师:attrib -r "%userprofile%\Local Settings\History" /s /d

脚本如何改成VBS?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-20 16:06 , Processed in 0.021327 second(s), 8 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表