开发者

VBS中解决带空格路径的三种方法

方法一:

Set wshell=CreateObject("WScript.Shell")
wshell.Run """C:\Program Files\360\360se\360se.exe""",5,True
Set wshell = Nothing

方法二:

temp="C:\Program Files\360\360se3\编程客栈360se.exe"
path = Chr(34) & temp & Chr(34)
Set wshell=CreateObject("WScript.Shell")
wshell.Run path,1,True
Set wshell = Nothing
 

方法三:

www.devze.com

Public Const vbQuote = """"
temp="C:\Phttp://www.devze.comrogram Files\360\360se3编程客栈360se.exe"
path = vbQu编程客栈ote & temp & vbQuote
Set wshell=Crea开发者_Go开发teObject("WScript.Shell")
wshell.Run path,1,True
Set wshell = Nothing

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新开发

开发排行榜