VBS中解决带空格路径的三种方法
VBS中解决带空格路径的三种方法
发布时间:2016-12-28 来源:查字典编辑
摘要:方法一:Setwshell=CreateObject("WScript.Shell")wshell.Run"""C:ProgramFiles...

方法一:

Set wshell=CreateObject("WScript.Shell") wshell.Run """C:Program Files360360se360se.exe""",5,True Set wshell = Nothing

方法二:

temp="C:Program Files360360se3360se.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 Files360360se3360se.exe" path = vbQuote & temp & vbQuote Set wshell=CreateObject("WScript.Shell") wshell.Run path,1,True Set wshell = Nothing

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新vbs学习
热门vbs学习
脚本专栏子分类