Click here to Skip to main content
16,016,760 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everybody
I've been working on a project in c#, I've create a windows application, I put a buttom that should open another console program to excute when it presses
Have any one worked with similar idea? Help please
regards
Posted
Comments
[no name] 28-Apr-14 12:43pm    
System.Diagnostics.Process.
Mujeeba Haj Najeeb 28-Apr-14 12:59pm    
Do you mean the library?
[no name] 28-Apr-14 16:52pm    
No I mean System.Diagnostics.Process.

He means try:
Process.Start("cmd.exe");
 
Share this answer
 
Please see: http://msdn.microsoft.com/en-us/library/vstudio/system.diagnostics.process.start[^].

Note that spawning a separate process is most usually a bad idea, because… this is a separate process. Processes are well isolated, so that remote process won't communicate with yours unless it's specifically designed to do so.

—SA
 
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