Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim path As String = "C:\temp\publish\WinFormsApp1.exe" Dim p As System.Diagnostics.Process = System.Diagnostics.Process.Start(path, {"ABC", "123"}) End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim param1 As String = My.Application.CommandLineArgs(0) Dim param2 As String = My.Application.CommandLineArgs(1) MsgBox(param1 & " と " & param2 & " を受け取りました。") End Sub