Retrieving command line arguments

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
 
M

Mike Hildner

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top