在Windows 7中单击并运行CMD命令行的界面 [英] Click and Run interface for the CMD command Line in windows 7

查看:73
本文介绍了在Windows 7中单击并运行CMD命令行的界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从GUI界面运行dos命令。我想创建一个Visual程序,它将在Windows 7的命令shell中执行dos命令。好的,例如,假设我想在cmd提示符下运行defrag ..我会键入Defrag然后输入。相反,我只想单击一个按钮在Visual Basic程序中完成这项工作。

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.

推荐答案

您可以创建一个包含按钮的表单。 />
单击它时,使用<$ href =http://www.codeproject.com/Articles/2092/Run-中所述的处理 a-Command-Line-Tool-as-a-Windows-Application-i>在C#中运行命令行工具作为Windows应用程序 [ ^ ]。
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#[^].


那没关系,我会继续粘贴对我文章的引用。



http://www.codeproject.com/Messages/3409061/How-do-I- drive-a-command-line-utility-beyond-execu.aspx [ ^ ]
That''s OK, I''ll just keep pasting references to my articles.

http://www.codeproject.com/Messages/3409061/How-do-I-drive-a-command-line-utility-beyond-execu.aspx[^]


这篇关于在Windows 7中单击并运行CMD命令行的界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆