Launch programs whose path contains spaces

后端 未结 8 1192
余生分开走
余生分开走 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:58

    set shell=CreateObject("Shell.Application")
    ' shell.ShellExecute "application", "arguments", "path", "verb", window
    shell.ShellExecute  "slipery.bat",,"C:\Users\anthony\Desktop\dvx", "runas", 1
    set shell=nothing 
    

提交回复
热议问题