I found a web page that showed a version that was converted from C# to VB.Net
http://www.vbdotnetheaven.com/uploadfile/mahesh/access-command-line-arguments-in-VB-Net/[
^]
Ive tried this in VB.Net and it works
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim psnfo As String
Dim strbuilder As New StringBuilder
Dim arg As String
For Each arg In Environment.GetCommandLineArgs()
strbuilder.AppendLine(arg)
Next
psnfo = strbuilder.ToString
TextBox1.Text = "Args: " & psnfo.ToString
End Sub
The code returns:
Args: C:\Testapp1.exe
temp
It will return both args passed to it.
your code does not appear to treat the args as an array or group of items.
Hope this helps some.