Environment.CommandLine is so complicated!?

ADO DOT NET

Centurion
Joined
Dec 20, 2006
Messages
160
Hi,
I try to work with Environment.CommandLine but it seems to be very hard parsing it!
If there are no command lines, the name and path of application will be returned itself.
If there are command line(s), the name and path of application + the name and path of files and these will be mixed for as many file as were opened, there are no Count or Item properties so it's hard to parse it, does anyone know a way to parse it in VB.NET?
Thanks. :)
 
If you are using VS 2005 you could try
Visual Basic:
 My.Application.CommandLineArgs
as an alternative or have you tried
Visual Basic:
Environment.GetCommandLineArgs
 
Back
Top