1
所以,我想要做的是使命令提示符打開按鈕設置周長按下。這是我到目前爲止有:參數和命令提示符
Public ReadOnly Property TheIP() As String
Get
Return TextBox1.Text
End Get
End Property
Process.Start("cmd", String.Format("/k {0} & {1} & {2}", "ping", TheIP, "-t", "-l"))
我遇到的問題是「平」和「-t」是沒有得到正確執行。
我得到的命令提示符下面的消息:
'123.123.123.123' is not recognized as an internal or external command, operable program or batch file.
我也得到
'-t' is not recognized as an internal or external command, operable program or batch file.
這是有效的,但事情是我絕對需要腳本中的-l。 – TheCloud 2014-11-21 00:00:30
,但是如果你放入'-l',它只是給出'必須爲選項-l提供值。如果你有一定的價值,就把它放在字符串中,例如'「/ k ping -l 1000 -t {0}」' – TessellatingHeckler 2014-11-21 00:23:32