What is the VB 6 equivalent of Process.Start?

前端 未结 3 1426
星月不相逢
星月不相逢 2021-01-14 13:19

I am stuck on a really stuck with this one line. In vb.net this is easy, but how do I do this in vb6? Tried to search from google for few hours and got nothing. Feels almost

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-14 14:11

    Just call Shell, and the parameters should be passed also with the string of the .exe name, like this:

    Call Shell("""runme.exe"" ""-parameter1 "" ""-parameter2""", vbNormalFocus)
    

    PS: The quotes make the difference, dont ignore it :)

提交回复
热议问题