How can I read this parameters inside my software? (c#)

Posted by Dezigo on Stack Overflow See other posts from Stack Overflow or by Dezigo
Published on 2010-05-07T08:54:34Z Indexed on 2010/05/07 8:58 UTC
Read the original article Hit count: 134

Filed under:

Hello!
I have created a shortcut of my .exe file.
I want add to '.exe' extra parameters.(on shortcut: Target attribute)
Example
Target:
"C:\Documents and Settings\dezigo\My Documents\c# programm\DirectoryScanner\DirectoryScanner\DirectoryScanner\bin\Debug\DirectoryScanner.exe" + extra parrams(like a method=1)
How can I read this parameters inside my software? (c#)
Then ,when starting .exe
check

if(method == 1)
{
 //do something
}
else
{
 //do something
}

© Stack Overflow or respective owner

Related posts about c#