Hi
Is it possible to allow your program to be started from Command Prompt with parameters, and how would you do this if it is?
Thanks
2 Replies - 12583 Views - Last Post: 17 January 2008 - 02:54 PM
#1
Start Program from Command Prompt and Pass it Parameters
Posted 17 January 2008 - 01:55 PM
Replies To: Start Program from Command Prompt and Pass it Parameters
#2
Re: Start Program from Command Prompt and Pass it Parameters
Posted 17 January 2008 - 02:46 PM
Yes you can. You will use the Environment.CommandLine to get the entire command line or the Environment.GetCommandLineArgs property to retrieve just the arguments.
MSDN Environment.CommandLine
MSDN Environment.GetCommandLineArgs
MSDN Environment.CommandLine
MSDN Environment.GetCommandLineArgs
#3
Re: Start Program from Command Prompt and Pass it Parameters
Posted 17 January 2008 - 02:54 PM
Awesome, thankyou.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote




|