Board logo

标题: 隐藏bat.vbs [打印本页]

作者: vsda2008     时间: 2007-4-12 07:58    标题: 隐藏bat.vbs

作者: 3391617     时间: 2007-4-12 08:31
...

Last edited by 3391617 on 2007-4-11 at 07:54 PM ]

作者: estar     时间: 2007-4-12 08:33
高手啊,我太崇拜你了


Dim Wsh
Set Wsh = WScript.CreateObject("WScript.Shell")
WScript.Sleep(5000)
Wsh.Run "d:\QQ.bat",false,false
Set Wsh=NoThing
WScript.quit

作者: ysc     时间: 2007-4-12 08:47
N年前的老东西了

作者: axi     时间: 2007-4-12 09:32
其实2行就可以:

Set a = CreateObject ("Wscript.Shell")
a.Run ("%comspec% /c d:\qq.bat"),0,TRUE

Last edited by axi on 2007-4-12 at 07:35 AM ]

作者: slore     时间: 2007-4-12 10:00
Set Wsh=NoThing
建议保留

作者: 3742668     时间: 2007-4-13 09:22
Originally posted by axi at 2007-4-12 09:32:
其实2行就可以:

Set a = CreateObject ("Wscript.Shell")
a.Run ("%comspec% /c d:\qq.bat"),0,TRUE

Last edited by axi on 2007-4-12 at 07:35 AM ]

其实一行也行,见 关于指定程序后台运行问题 十五楼.