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.
 
Back
Top