本帖最后由 pcl_test 于 2017-5-29 23:21 编辑
已解决:
我要封装系统,发现第一次进系统后,IE有个第一次使用的推荐设置,然后兼容性视图设置的站点就全不见了,然后找一位大侠的代码如下
可是完全看不懂,如果需要添加自己需要的站点如192.168.97.60 之类的 我该怎么添加啊 还有怎么设置成执行完批处理后自动关闭
谢谢 各个大大了 很急
以下是我把7daysinn.cn网站设置兼容性的bat源码,你参考下- @ECHO OFF
- color 2f
- mode con lines=20 cols=50
- title 一键解决MT兼容性问题V1.0 By:小智
- > "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\BrowserEmulation]
- >>"%Temp%.\DefOpen.reg" ECHO "IntranetCompatibilityMode"=dword:00000001
- >>"%Temp%.\DefOpen.reg" ECHO "MSCompatibilityMode"=dword:00000001
- >>"%Temp%.\DefOpen.reg" ECHO.
- >>"%Temp%.\DefOpen.reg" ECHO [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\BrowserEmulation\ClearableListData]
- >>"%Temp%.\DefOpen.reg" ECHO "UserFilter"=hex:41,1f,00,00,53,08,ad,ba,01,00,00,00,34,00,00,00,01,00,00,00,\
- >>"%Temp%.\DefOpen.reg" ECHO 01,00,00,00,0c,00,00,00,60,af,c3,07,08,f8,cf,01,01,00,00,00,0b,00,37,00,64,\
- >>"%Temp%.\DefOpen.reg" ECHO 00,61,00,79,00,73,00,69,00,6e,00,6e,00,2e,00,63,00,6e,00
- >>"%Temp%.\DefOpen.reg" ECHO.
- START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"
- START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"
- DEL "%Temp%.\DefOpen.reg"
- taskkill /f /t /im iexplore.exe 2>nul
- echo ===============================================
- echo ^| ^|
- echo ^| ^|
- echo ^| √. MT兼容性已修复完毕! ^|
- echo ^| ^|
- echo ^| 请先关闭浏览器再打开报MT即可 ^|
- echo ^| ^|
- echo ^| By:小智 ^|
- echo ===============================================
- pause
复制代码 可是 |