Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to run dos commands from a GUI interface. I want to create a Visual Program that will execute dos commands in the command shell in windows 7. Ok so for example lets say i want to run defrag in the cmd prompt.. I would type Defrag and then enter. Instead i would like to just click a button to do this job in a visual basic program.
Posted
Comments
PIEBALDconsult 17-Jan-13 23:22pm    
You, ah, could've just edited the other version. Oh, I see, you changed from C++ to VB.

http://www.codeproject.com/Questions/529800/RunplusDospluscommandplusLinesplusfromplusaplusGUI

You can create a form that has a button on it.
When you click it, use Process as described at Run a Command Line Tool as a Windows Application in C#[^].
 
Share this answer
 
 
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