标题: [注册表类] 求助批处理隐藏窗口后台执行开启设置主页的写法 [打印本页]
作者: lansse 时间: 2009-4-24 20:32 标题: 求助批处理隐藏窗口后台执行开启设置主页的写法
@echo off
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v "ie" /t REG_SZ /d %0 /f
0.bat&call %~fs0 once
goto :eof
:get
reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /t REG_SZ /d "1234.com" /f
小弟对批处理刚接触,不是很懂,望高人指点。
需要实现的功能是开机自启动并设置主页为1234.com.执行为后台执行,无界面显示。
目前写到此加了once还是反复循环,高手指点。
作者: lansse 时间: 2009-4-24 20:48
求助 望高人指点。
作者: batman 时间: 2009-4-24 20:56
给个例子你吧:- @echo off
- if "%1" equ "once" goto next
- mshta vbscript:createobject("wscript.shell").run("%~fs0 once",0)(window.close)&exit
- :next
- start calc.exe"
复制代码
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |