Launch programs whose path contains spaces

后端 未结 8 1223
余生分开走
余生分开走 2020-11-28 08:32

I need to launch programs in my local system using VBScript. But I am having trouble with the syntax. This is what I am using right now -

Dim objShell
Set o         


        
8条回答
  •  孤街浪徒
    2020-11-28 08:47

    You van use Exec

    Dim objShell
    Set objShell = WScript.CreateObject( "WScript.Shell" )
    objShell.Exec("c:\Program Files\Mozilla Firefox\firefox.exe")
    Set objShell = Nothing
    

提交回复
热议问题