Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I want to open a dos prompt within my .net windows application. Please suggest any dll file or any other alternative.
Posted
Comments
Kim Togo 13-Jul-11 10:59am    
@Member 7929774
Please use "Add Comment" and not "Add your solution here".
Kim Togo 13-Jul-11 11:00am    
What you will achieve with this?
Start cmd.exe and do what?

You can use Process.Start("cmd.exe"); It's in the Diganostics namespace.

See MSDN[^]

[Edit]If you don't want the user to be able to type into the cmd session then this stack overflow article[^] will show you how.[/Edit]
 
Share this answer
 
v3
Comments
Kim Togo 13-Jul-11 10:58am    
From OP:

I want to interact with dos prompt from my .net application(i.e. send the command and receive the output), Please tell me how to do this?
Sergey Alexandrovich Kryukov 13-Jul-11 16:57pm    
My 4. Simply say: System.Diagnostics.Process.Start. Also, this is not a correct question.
Please see my answer to see what I mean.
There is no such thing as "DOS prompt" anymore, period. Know what are you asking about.

—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