2020年6月13日 星期六

vb.net 取得Args (自身命令列) [Get Argument]


1
2
3
4
5
6
7
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        If My.Application.CommandLineArgs.Count <> 0 Then
            For Each argument As String In My.Application.CommandLineArgs
                ' Add code here to use the argument.
            Next
        End If
    End Sub

沒有留言:

張貼留言