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

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

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

  2021-03-20 我要评论
想了解VBS中解决带空格路径的三种方法的相关内容吗,在本文为您仔细讲解VBS中解决带空格路径的三种方法的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:VBS解决带空格路径,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

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们