Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB
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 17-Jan-13 18:09pm
Comments
PIEBALDconsult at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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#[^].
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,803
1 Sergey Alexandrovich Kryukov 6,377
2 DamithSL 5,421
3 Manas Bhardwaj 4,841
4 Maciej Los 4,330


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 17 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100