源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

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

  • 时间:2022-05-29 20:18 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要: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
 
方法三:
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
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部