Retrieving command line arguments

  • Thread starter Thread starter Mike Hildner
  • Start date Start date
M

Mike Hildner

Is there an easy way to get the command line arguments when some might have
embedded spaces surrounded by quotes?

For example, the Split function, using a space as the delimiter, doesn't do
what I want when the command line looks something like:
MyApp.exe arg1 arg2 "argument number three"

Thanks,
Mike
 
Nevermind. Easier to use Environment.GetCommandLineArgs(), which I didn't
know about.
 
Back
Top