[VBS ] act.run後加參數?

作者: vernc (cralvin)   2021-04-29 03:23:12
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"
作者: laechan (揮淚斬馬雲)   2021-04-29 15:28:00
就 " ... " 裡面的 " 全部多加一個 " 試試?ex: "xxx" -oo"zz" => """xxx"" -oo""zz"""

Links booklink

Contact Us: admin [ a t ] ucptt.com