C# - Arguments for application

后端 未结 5 480
野趣味
野趣味 2021-01-27 08:02

How can I make it so when there are arguments added to the end of the program name it does a specific method or whatever?

Also, is there a name for this?

Example

5条回答
  •  感动是毒
    2021-01-27 08:46

    You are looking for commandline arguments, aren't You?

    Here You will find some examples: http://www.csharphelp.com/archives/archive273.html Here more: http://www.google.com/search?hl=en&q=%22c%23%22+command+line+arguments&aq=f&oq=&aqi=g10

提交回复
热议问题