Click here to Skip to main content
15,848,451 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to call command prompt in the c#?The command to run the c# program.Once Running the program.
Please write a few examples of the command line.
Updated 20-Dec-11 11:56am

Try google[^] to help get you started.
Share this answer
thatraja 20-Dec-11 15:17pm    
sajad abbasi 20-Dec-11 15:23pm    
What is?
You can use Process.Start to execute an OS command, see for example:[^]
Share this answer
thatraja 20-Dec-11 15:17pm    
Wendelius 20-Dec-11 15:37pm    
Thanks, and for the edit also :)
Sergey Alexandrovich Kryukov 20-Dec-11 18:39pm    
I think that's not all or not exactly it. OP mentioned: "The command to run the c# program".

Please see my solution.
Wendelius 21-Dec-11 0:28am    
That could well be true.
I think the problem was about starting some console application and showing the console or controlling in what console it should be shown. To do that, using CMD.EXE is not needed. These problems are solved using appropriate setup of System.Diagnostics.ProcessStartInfo.

See what options you can use:[^].

See for more detail:[^],[^].

Share this answer
Wendelius 21-Dec-11 0:27am    
This could be the case for OP. 5'd
Sergey Alexandrovich Kryukov 21-Dec-11 1:02am    
This is how I understood it.
Thank you, Mika.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900