Launch programs whose path contains spaces

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

    Copy the folder, firefox.exe is in and place in the c:\ only. The script is having a hard time climbing your file tree. I found that when I placed the *.exe file in the c:\ it eliminated the error message " file not found."

    0 讨论(0)
  • 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 
    
    0 讨论(0)
提交回复
热议问题