T
Tim A
I want the user to be able to select a group of files in windows explorer,
right click, open with - my application and have my application put all of
the file names onto the clipboard.
It seems that the command line args is only capturing the last file selected
when the app is executed. files.length is always equal to 2 no matter how
many files are selected when the app is run. Is there another way to do this?
Module Module1
Sub Main()
Dim i As Integer
Dim files As String() = Environment.GetCommandLineArgs()
Console.WriteLine(files.Length)
If files.Length > 1 Then
i = 0
For Each s As String In My.Application.CommandLineArgs
Console.WriteLine(s)
Next
Console.ReadLine() 'this temporary to keep the console window open
End If
End Sub
End Module
Thanks for your assistance.
t.
right click, open with - my application and have my application put all of
the file names onto the clipboard.
It seems that the command line args is only capturing the last file selected
when the app is executed. files.length is always equal to 2 no matter how
many files are selected when the app is run. Is there another way to do this?
Module Module1
Sub Main()
Dim i As Integer
Dim files As String() = Environment.GetCommandLineArgs()
Console.WriteLine(files.Length)
If files.Length > 1 Then
i = 0
For Each s As String In My.Application.CommandLineArgs
Console.WriteLine(s)
Next
Console.ReadLine() 'this temporary to keep the console window open
End If
End Sub
End Module
Thanks for your assistance.
t.