作者vernc (cralvin)
看板Visual_Basic
标题[VBS ] act.run後加参数?
时间Thu Apr 29 03:23:12 2021
C:\Program Files (x86)\Battle.net\Battle.net.exe
Set Act = CreateObject("Wscript.Shell")
Act.run"""C:\Program Files (x86)\Battle.net\Battle.net.exe"""
上面没问题,但请问这种有参数的要怎处理?
"C:\Program Files (x86)\Battle.net\Battle.net.exe" --exec="launch WTCG"
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 36.237.55.147 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Visual_Basic/M.1619637794.A.AD6.html
1F:→ laechan: 就 " ... " 里面的 " 全部多加一个 " 试试? 04/29 15:28
2F:→ laechan: ex: "xxx" -oo"zz" => """xxx"" -oo""zz""" 04/29 15:29