Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

VS 2012 Automate Command Prompt Window (CMD) and doing many commands at a time

$
0
0
So I'm using this http://www.vbforums.com/showthread.p...tion-2003-2005 but I want to be able to issue a lot of commands not just a single command also I want them to be done automatically I need to do like 5 different commands without the commands restarting. I tried having it do a button click after each one but it seems to be clearing the commands that where placed before so when I do this

Code:

txtCommand.Text = "cd c:\"
            Button3_Click(Button3, EventArgs.Empty)

and then try to run an application from that location it fails because somehow it's resetting the CMD before it lets me issue my 2nd command.

anyone here that could help me get this to work for multiple commands without resetting?

thanks in advance also let me know if you think this is impossible.

Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>