很抱歉重复:系统将其迁移到此论坛,即使有人将我重定向到那里。
我使用VB.NET在Visual Studio中创建程序,而且我在shell中运行nbtstat时遇到问题。
Public Class Form1
Dim A, IP As String
Dim B, C As Integer
...
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
B += 1
IP = TextBox1.Text & "." & TextBox2.Text & "." & TextBox3.Text & "." & B
A = My.Computer.Network.Ping(IP)
If A = True Then
'Process.Start("CMD", "/K nbtstat -a" & IP) NEEDS TO RUN AS A REAL CMD SHELL
End If
Text = "Pinging:" & IP
ListBox1.Items.Insert(0, IP & " " & A)
C = B / 30 * 100
If B = TextBox4.Text Then
Timer1.Stop()
End If
End Sub
...
End Class
这是处理输入的一小部分代码。
抛出错误:
' NBTSTAT'不被视为内部或外部命令, 可操作程序或批处理文件。
D:\ Karanbir Ahuja \ Documents \ Visual Studio 2015 \ Projects \ NBTScan_Alpha.1 \ NBTScan_Alpha.1 \ bin \ Debug>
我对该网站上的修复程序没有运气,我转向此处。语法似乎是正确的,但shell只是缺少NBTstat。 http://prntscr.com/eg26jd
即使发送到sys32。
有人可以帮忙吗?