我想从 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)