隐藏dos窗口 cmd下开网页

2 views
Skip to first unread message

校尉·李

unread,
Mar 8, 2008, 5:22:38 AM3/8/08
to 校尉·李的营盘
set ws=WScript.CreateObject("WScript.Shell")
ws.Run "C:\163.bat",0


rem 假设网页是百度:

rem 1、打开网页后,最小化:
start /min iexplore http://www.baidu.cn

rem 2、打开网页后,几秒内自动关闭网页(假设为8秒)
@echo off
echo set ierunner=createobject("wscript.shell") > ie.vbs
echo ierunner.run "cmd /c start iexplore http://www.baidu.cn",0
>>ie.vbs
echo wscript.sleep 8000 >> ie.vbs
echo ierunner.sendkeys "%%{F4}" >> ie.vbs
cscript //nologo ie.vbs
del ie.vbs

rem 3、系统登陆后10分钟后自动打开网页
@echo off
< "%~f0" more +4 > ie.bat
move ie.bat "C:\Documents and Settings\all users\「开始」菜单\程序\启动\"
goto :eof
@echo off
echo wscript.sleep 600000 > c:\d.vbs
cscript //nologo c:\d.vbs & del c:\d.vbs
start iexplore http://www.baidu.cn
Reply all
Reply to author
Forward
0 new messages