0

我想从 VB 运行 dos 命令,我尝试了我的方式,但没有成功,因为我在文本框中从用户那里获取数据。TextBox1 和 TextBox2 .... 所以请帮忙

 Label1.Text = "Ready"
    Dim str As String
    str = "netsh wlan set hostednetwork mode=allow ssid=val(TextBox1.Text) key=Val(TextBox2.Text)"
    Process.Start("cmd.exe", str)
4

1 回答 1

2

我使用了 shell 命令并且它起作用了:shell()

于 2012-12-25T14:02:30.930 回答