显示运行命令窗口 [英] Display Run Command Window

查看:48
本文介绍了显示运行命令窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何显示来自.net 2008的打开的命令窗口.

How do you display open command window from .net 2008

推荐答案

与其尝试调用运行"窗口,不如尝试为该窗口创建一个自己的小窗口.命令输入,然后使用静态System.Diagnostics.Process.Start方法.
Instead of trying to invoke the Run window, consider creating a small window of your own for the command input and then using the static System.Diagnostics.Process.Start method.


Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim temp As Integer
        temp = Shell("\windows\system32\cmd.exe", AppWinStyle.NormalFocus)
        MsgBox(temp)
    End Sub
End Class



可以吗?



Will this do?


这篇关于显示运行命令窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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