Skipping "Press Any Key To Continue" Screen

Glennlh

New member
Joined
Sep 17, 2009
Messages
2
Programming Experience
Beginner
Im making a application with visual basic 2008 and need to load an external command line app. I want visual basic to load the app then close it, but the app after being run says "Press any key to continue", how can I get visual basic to skip this?"

To run the external app im using Shell because I cant get proccess.start to hide the window.

Thanks in Advanced
 
Something like this?

VB.NET:
Dim temp As New ProcessStartInfo()
                temp.Arguments = "arguments"
                temp.CreateNoWindow = True
                temp.WindowStyle = ProcessWindowStyle.Hidden
                temp.RedirectStandardInput = True

                Dim temp2 As Process = Process.Start(temp)

                temp2.StandardInput.WriteLine(String.Empty)

Bobby
 
Something like this?

VB.NET:
Dim temp As New ProcessStartInfo()
                temp.Arguments = "arguments"
                temp.CreateNoWindow = True
                temp.WindowStyle = ProcessWindowStyle.Hidden
                temp.RedirectStandardInput = True

                Dim temp2 As Process = Process.Start(temp)

                temp2.StandardInput.WriteLine(String.Empty)

Bobby

Thanks, I'll give it a go

Edit: Thanks Again, Works Great
 
Last edited:
Back
Top