How does one send and catch external parameters to windows application

  • Thread starter Thread starter Webgour
  • Start date Start date
W

Webgour

How does one send and catch external parameters to windows application.

if i have D:\My Documents\Visual Studio
Projects\WindowsApplication3\obj\Debug\WindowsApplication3.exe -u -y

how do I catch these values in my application.

Thanks in advance.Oliver.
 
Oliver,

Basically, you can define your entry point (most often the static method
Main) to take an array of strings as the first parameter. This will be the
command line (parsed apart by the OS).

Hope this helps.
 

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

Back
Top