手机
当前位置:查字典教程网 >脚本专栏 >vbs >VBS中解决带空格路径的三种方法
VBS中解决带空格路径的三种方法
摘要:方法一: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实现将Excel表格保存为txt文本

用VBS读写二进制文件的另一种方法分享

VBS教程:方法-GetBaseName 方法

使用 Iisftp.vbs 启动FTP站点的方法

用VBScript实现解压缩目录中的所有文件(Zip)

VBS中转换二进制数据为字符串常用办法

VBS实现将字符串写入剪切板的实现代码

Vbscript写注册表的方法

VBS教程:方法-Keys 方法

VBScript开发自动化测试脚本的方法分析

精品推荐
分类导航