Opening files with VB.NET program

前端 未结 3 1748
不知归路
不知归路 2020-12-20 07:19

I recently learned how to use VB.NET to set your program as the default for a chosen extension. You would write code to set a registry value. The problem is, when you open t

3条回答
  •  时光说笑
    2020-12-20 07:39

    The filename is passed to your program by the OS

    Sub Main()
        Dim s() As String = System.Environment.GetCommandLineArgs()
    EndSub
    

    MSDN docs

提交回复
热议问题