J
Joe Duchtel
Hello -
I have an application for which I need to pass in a path as command
argument. Neither of the following two statements will not work as
the command argument is split at the space ...
Dim lCommandArgument() as String = Microsoft.VisualBasic.Command()
lComandArgument(0)
My.Application.CommandLineArgs(0)
So a "C:\Document and Settings" results in "C:\Document".
Is there any way to make this work? I cannot use the Sub Main(ByVal
aArguments() As String) as I use a Form.
Would anybody have a slick regular expression or anything else that
will parse for the double quotes and treat everything enclosed as a
single argument?
Thanks!
Joe
I have an application for which I need to pass in a path as command
argument. Neither of the following two statements will not work as
the command argument is split at the space ...
Dim lCommandArgument() as String = Microsoft.VisualBasic.Command()
lComandArgument(0)
My.Application.CommandLineArgs(0)
So a "C:\Document and Settings" results in "C:\Document".
Is there any way to make this work? I cannot use the Sub Main(ByVal
aArguments() As String) as I use a Form.
Would anybody have a slick regular expression or anything else that
will parse for the double quotes and treat everything enclosed as a
single argument?
Thanks!
Joe