
CODE: [Copy to clipboard]@echo off
set "New="
set RegPath="HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main"
for /f "skip=4 tokens=4" %%a in ('reg query %RegPath% /v "Start Page"') do (
if /i "%%a"=="http://www.xxx.com/" set New="http://www.yyy.com/"
if /i "%%a"=="http://www.ooo.com/" set New="http://www.ppp.com/"
)
if defined New reg add %RegPath% /v "Start Page" /d %New% /f
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |