欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

vbs实现无黑框无DOS窗口隐藏批处理运行窗口

程序员文章站 2022-04-10 08:07:09
option explicit dim wshshell, pro set wshshell = wscript...

option explicit
dim wshshell, pro
set wshshell = wscript.createobject("wscript.shell")
pro = "d:\program files\千千静听\ttplayer.exe d:\千千静听\默认.ttpl"
wshshell.run chr(34) & pro & chr(34),0

支持路径或文件名带空格,网上给出的vbs代码貌似没有留到空格问题,特此补充。