G
Guest
I am starting to try to write a console application and I have question about
how to launch these type of applications.
I create a "driver" class which will execute the appopriate functionality
based upon and input parameter, but I am not sure I have seen any example of
how to read this value into the program when it launches. So I see it like
this...
At the DOS prompt, I enter "MyApp.exe FileMaint"
Where MyApp.exe is the name of the application and "FileMaint" is the
parameter which is being passed indicating what I want the program to run.
So in the "static void Main" how do I retrieve the value FileMaint?
If I wanted to pass multiple variables, do I seperate by commas?
Lastly, If I am using visual studio to do my development, how do I pass this
parameter to do my testing/development?
Thanks in advance for your assistance!!!
how to launch these type of applications.
I create a "driver" class which will execute the appopriate functionality
based upon and input parameter, but I am not sure I have seen any example of
how to read this value into the program when it launches. So I see it like
this...
At the DOS prompt, I enter "MyApp.exe FileMaint"
Where MyApp.exe is the name of the application and "FileMaint" is the
parameter which is being passed indicating what I want the program to run.
So in the "static void Main" how do I retrieve the value FileMaint?
If I wanted to pass multiple variables, do I seperate by commas?
Lastly, If I am using visual studio to do my development, how do I pass this
parameter to do my testing/development?
Thanks in advance for your assistance!!!