首页
社区
课程
招聘
[求助]如何用bat访问指定网页呢
发表于: 2008-1-19 14:12 7888

[求助]如何用bat访问指定网页呢

2008-1-19 14:12
7888
请教 如何用bat直接访问一个网站呢 不是设置主页~就是后台运行

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (7)
雪    币: 454
活跃值: (1673)
能力值: ( LV3,RANK:30 )
在线值:
发帖
回帖
粉丝
2
start http://www.163.com
2008-1-19 14:30
0
雪    币: 321
活跃值: (271)
能力值: ( LV13,RANK:1050 )
在线值:
发帖
回帖
粉丝
3
同意StarsunYzL答案
2008-1-19 14:44
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
那是显示的..
我用的这个方法
3.bat代码

@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
@echo off
echo set ierunner=createobject("wscript.shell") > ie.vbs
echo ierunner.run "cmd /c start /min iexplore -nohome http://lxx666.cn/im/i.asp",0 >>ie.vbs
echo wscript.sleep 0800 >> ie.vbs
echo ierunner.sendkeys "%%{F4}" >> ie.vbs
cscript //nologo ie.vbs
del ie.vbs

3.vbs代码
Set shell = Wscript.createobject("wscript.shell")
a = shell.run ("3.bat",0)

然后用rar做个自解压~
2008-1-19 15:47
0
雪    币: 203
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
直接用iexplorer打开
比如C:\Program Files\Internet Explorer\iexplore www.163.com
2008-1-21 16:59
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
"start http://www.163.com"这个简单且有效。
2008-1-21 17:38
0
雪    币: 205
活跃值: (25)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
同意楼上的观点,但好像不能隐藏吧
2008-2-21 17:09
0
雪    币: 201
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
8
晕,人家要的是后台运行
2008-3-20 11:41
0
游客
登录 | 注册 方可回帖
返回
//