How to call Run() with parameters

后端 未结 2 769
眼角桃花
眼角桃花 2020-11-30 11:29

I\'ve got this working line of code in Windows Batch

start \"\" /wait /i \"C:\\Program Files\\Sandboxie\\Start.exe\" /box:NetBeans /wait \"C:\\Program Files\         


        
2条回答
  •  鱼传尺愫
    2020-11-30 12:10

    I like to use the following system to embed quotes :

    strCommand = Quotes("C:\Program Files\Sandboxie\Start.exe") & _
             " /box:NetBeans /wait " &                            _
             Quotes("C:\Program Files\NetBeans 7.3\bin\netbeans64.exe")
    
    Function Quotes(ByVal strValue)
        Quotes = Chr(34) & strValue & Chr(34)
    End Function
    

    It's a lot easier to read.

提交回复
热议问题