VBS中处理带空格符途径的三种方式
时间: 2021-08-28 16:46:03 阅读: 79 次 来源:IT学府
作者:未知
方法一:
Set wshell=CreateObject("WScript.Shell")
wshell.Run """C:\Program Files\360\360se\360se.exe""",5,True
Set wshell = Nothing
方法二:
temp="C:\Prog
Set wshell=CreateObject("WScript.Shell")
wshell.Run """C:\Program Files\360\360se\360se.exe""",5,True
Set wshell = Nothing
方法二:
temp="C:\Prog
方法一:
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
- 上一篇:VBS完成将获取当前时间转化成UTC時间
- 下一篇:VBS表明当今国际标准时间