当前位置: 移动技术网 > IT编程>脚本编程>VBScript > VBS中解决带空格路径的三种方法

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

2017年12月01日  | 移动技术网IT编程  | 我要评论

冷皇的废后有声小说,涡阳门户,如果我老了

方法一:

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
 

方法三:

public const vbquote = """"
temp="c:\program files\360\360se3\360se.exe"
path = vbquote & temp & vbquote
set wshell=createobject("wscript.shell")
wshell.run path,1,true
set wshell = nothing

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网