Launch programs whose path contains spaces

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

    It's working with

    Set WSHELL = CreateObject("Wscript.Shell")
    WSHELL.Exec("Application_Path")
    

    But what should be the parameter in case we want to enter the application name only

    e.g in case of Internet Explorer

    WSHELL.Run("iexplore")
    

提交回复
热议问题