A
Anders B
Hmm, can "My.Application.CommandLineArgs" only contain 6 items?
I can't seem to get anything more out of it atleast.
I can't seem to get anything more out of it atleast.
Hmm, can "My.Application.CommandLineArgs" only contain 6 items?
I can't seem to get anything more out of it atleast.
Anders B said:That really got me thinking..
And since I am trying Vista right now I thought, perhaps the problem lies
there..
So I tried my app on an XP box and that worked like a charm.. tried 10
arguments.
Got any clue on what it might be that limits it to 6 under Vista? Hmm.
Developing under 2005 with service pack 1.
Stephany Young said:It's not limited to 6 on Vista by any means.
Working quite happily with 23 on
Windows 2000 Server
Windows 2000 Workstation
Windows XP
Windows 2003 Server
Windows Vista
Perhaps yuo might like to post the command line you are using because I'm
sure that the problem is likely to be one or more of the characters in the
string.
Stephany Young said:It's not limited to 6 on Vista by any means.
Working quite happily with 23 on
Windows 2000 Server
Windows 2000 Workstation
Windows XP
Windows 2003 Server
Windows Vista
Perhaps yuo might like to post the command line you are using because I'm
sure that the problem is likely to be one or more of the characters in the
string.
Anders B said:Ok, a bit of background. I am using my application on the "Send to" menu
that you find when right clicking on a file in Explorer. And im picking up
the selected files with the CommandLineArgs. And its working.. but as I
said it will only give me the path of 6 files under Vista and when I tried
on an XP machine I tried up to 10 files.. will see if I can do more.
For a test I've copied a bunch of text files that im selecting and sending
to my app through the send to menu.
And right now im not doing much with the arguments in my application
simply displaying them in a messagebox.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim i As Integer
Dim s As String
For i = 0 To My.Application.CommandLineArgs.Count - 1
s = My.Application.CommandLineArgs.Item(i)
MsgBox(s)
Next
End Sub
Ok, a bit of background. I am using my application on the "Send to" menu
that you find when right clicking on a file in Explorer.