作者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/m.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