hi,
I want to open command prompt automatically (in hidden mode) using c# or vb code. And commands should be used in command prompt, which are also written in code.
thanks in advance...
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Apr 7, 2011, 8:39 PM
Do you need to execute a console program? Or some console programs? Console programs execute in a command prompt window. I will assume that the applications to be executed are console programs.
I assume that you need to send commands to the console programs and get the output back. That is called redirection. It is not possible to do that for all console programs but hopefully you can do it for the applications you need to do it for. You can test the applications to ensure that redirection works with them. Do you understand? You can use "<" on the command line to specify a file for input commands and ">" to specify a file for output to go. If you can verify that redirection works for the applications then we should be able to help you with the rest.
Karthikeyan AnbarasanPosted Apr 7, 2011, 11:06 AM
Deepak VermaPosted Apr 7, 2011, 7:46 AM
Karthikeyan AnbarasanPosted Apr 7, 2011, 4:41 AM