添加主页-锁定主页-添加收藏夹-添加快速启动-添加IE按钮的批处理

 添加主页-锁定主页-添加收藏夹-添加快速启动-添加IE按钮的批处理

全部收集于论坛和百度请高手们指点一下

我们的目标---提高封装时候的工作效率

有个问题,快速启动的路径可以做成变量么??可以批处理该这个快捷方式的图标么??改成IE的图标

还有怎么在这之前清空收藏夹,因为有的软件会加收藏夹,极品五笔之类

分享一个Bat To Exe Converter(批处理文件bat转换exe可执行文件) 1.5
http://sky123.org/thread-41542-1-1.html

::设置主页并锁定
@REG ADD "HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\OpenHomePage\Command" /ve /t REG_EXPAND_SZ /d "C:\Program Files\Internet Explorer\iexplore.exe http://www.2345.com/?751" /f   
@reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /d " http://www.2345.com/?751" /f   

::添加快捷方式到收藏夹
@echo off&setlocal enabledelayedexpansion
REG QUERY "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Favorites >%Temp%\Favorites.txt
for /f "skip=2 tokens=1,2*" %%i in ('find /i "Favorites" %Temp%\Favorites.txt') do (
echo [InternetShortcut] >>%%k\2345网址导航.url&echo URL=" http://www.2345.com/?751" >>%%k\2345网址导航.url&del /f /s /q %Temp%\Favorites.txt>nul
)
::添加快捷方式到快速启动
@echo off
>"C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\2345网址导航.url" type nul
>>"C:\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch\2345网址导航.url" (
echo [InternetShortcut]
echo URL=http://www.2345.com/?751
)

::在IE上添加 还原 IE 主页 按钮
@echo off
If exist %windir%\startpage.reg (
echo 将删除“还原 IE 主页”按钮&echo.&pause
del %windir%\startpage.reg
del %windir%\RestoreStartPage.lnk
reg delete "HKLM\SOFTWARE\Microsoft\Internet Explorer\Extensions\{8515FC11-B332-447E-8056-1197551CFDB4}" /f
exit
)
>%windir%\startpage.reg echo Windows Registry Editor Version 5.00
>>%windir%\startpage.reg echo.
>>%windir%\startpage.reg echo [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
>>%windir%\startpage.reg echo "Start Page"=" http://www.2345.com/?751"
>%windir%\creatlink.vbs echo set WshShell = WScript.CreateObject("WScript.Shell")
>>%windir%\creatlink.vbs echo set oShellLink = WshShell.CreateShortcut("%windir%\RestoreStartPage.lnk")
>>%windir%\creatlink.vbs echo oShellLink.TargetPath = "regedit.exe"
>>%windir%\creatlink.vbs echo oShellLink.Arguments = "/s startpage.reg"
>>%windir%\creatlink.vbs echo oShellLink.Save
start creatlink.vbs
reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Extensions\{8515FC11-B332-447E-8056-1197551CFDB4}" /f /v "Icon" /t REG_SZ /d "shell32.dll,255"
reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Extensions\{8515FC11-B332-447E-8056-1197551CFDB4}" /f /v "HotIcon" /t REG_SZ /d "shell32.dll,255"
reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Extensions\{8515FC11-B332-447E-8056-1197551CFDB4}" /f /v "ButtonText" /t REG_SZ /d "还原 IE 主页"
reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Extensions\{8515FC11-B332-447E-8056-1197551CFDB4}" /f /v "Default Visible" /t REG_SZ /d "Yes"
reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Extensions\{8515FC11-B332-447E-8056-1197551CFDB4}" /f /v "Exec" /t REG_SZ /d "RestoreStartPage.lnk"
reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Extensions\{8515FC11-B332-447E-8056-1197551CFDB4}" /f /v "CLSID" /t REG_SZ /d "{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}"
del %windir%\creatlink.vbs
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值