改成这样:- DIM objShell
- set objShell=wscript.createObject("wscript.shell")
- objShell.Run "cmd.exe /C ""%CommonProgramFiles%\EZ SOFT\001.bat""", 0, true
复制代码 或者这样:- DIM objShell
- set objShell=wscript.createObject("wscript.shell")
- objShell.Run "cmd.exe /C " & chr(34) & "%CommonProgramFiles%\EZ SOFT\001.bat" & chr(34), 0, true
复制代码 可以参看:
http://www.microsoft.com/china/t ... ources/hey0806.mspx
[ 本帖最后由 keen 于 2009-8-8 20:08 编辑 ] |