如何使用 VB6 或 BAT/CMD 列出连接到我的 WiFi 网络的设备?
How can I list the devices connected to my WiFi network using VB6 or BAT/CMD?
我正在制作一个程序来列出连接到我的 Wi-Fi 网络的所有设备,以便我可以查看是否有其他人连接。
我找到了 CMD 的代码 - net view 但它只列出了连接到我的 Wi-Fi 的计算机,而不是移动设备。是否有任何其他命令可以使用 CMD 列出连接到我的 Wi-Fi 的移动设备。
您需要一个名为的外部工具:Wireless Network Watcher
说明:
Wireless Network Watcher is a small utility that scans your wireless
network and displays the list of all computers and devices that are
currently connected to your network. For every computer or device that
is connected to your network, the following information is displayed:
IP address, MAC address, the company that manufactured the network
card, and optionally the computer name. You can also export the
connected devices list into html/xml/csv/text file, or copy the list
to the clipboard and then paste into Excel or other spreadsheet
application.
并且您可以创建一个批处理文件来保存 HTML 结果,如下所示:
@echo off
WNetWatcher.exe /shtml "WNetWatcher.html"
Start "" "WNetWatcher.html"
命令行选项:
/cfg Start Wireless Network Watcher with the specified
configuration file. For example: WNetWatcher.exe /cfg
"c:\config\wnw.cfg" WNetWatcher.exe /cfg "%AppData%\WNetWatcher.cfg"
/stext Scan your network, and save the network devices
list into a regular text file.
/stab Scan your network,
and save the network devices list into a tab-delimited text file.
/scomma Scan your network, and save the network devices
list into a comma-delimited text file (csv).
/stabular Scan your network, and save the network devices
list into a tabular text file.
/shtml Scan your network, and save the network devices
list into HTML file (Horizontal).
/sverhtml Scan your network, and save the network
devices list into HTML file (Vertical).
/sxml Scan your network, and save the network devices
list into XML file.
我正在制作一个程序来列出连接到我的 Wi-Fi 网络的所有设备,以便我可以查看是否有其他人连接。
我找到了 CMD 的代码 - net view 但它只列出了连接到我的 Wi-Fi 的计算机,而不是移动设备。是否有任何其他命令可以使用 CMD 列出连接到我的 Wi-Fi 的移动设备。
您需要一个名为的外部工具:Wireless Network Watcher
说明:
Wireless Network Watcher is a small utility that scans your wireless network and displays the list of all computers and devices that are currently connected to your network. For every computer or device that is connected to your network, the following information is displayed: IP address, MAC address, the company that manufactured the network card, and optionally the computer name. You can also export the connected devices list into html/xml/csv/text file, or copy the list to the clipboard and then paste into Excel or other spreadsheet application.
并且您可以创建一个批处理文件来保存 HTML 结果,如下所示:
@echo off
WNetWatcher.exe /shtml "WNetWatcher.html"
Start "" "WNetWatcher.html"
命令行选项:
/cfg Start Wireless Network Watcher with the specified configuration file. For example: WNetWatcher.exe /cfg
"c:\config\wnw.cfg" WNetWatcher.exe /cfg "%AppData%\WNetWatcher.cfg"/stext Scan your network, and save the network devices
list into a regular text file./stab Scan your network,
and save the network devices list into a tab-delimited text file./scomma Scan your network, and save the network devices
list into a comma-delimited text file (csv)./stabular Scan your network, and save the network devices list into a tabular text file.
/shtml Scan your network, and save the network devices
list into HTML file (Horizontal)./sverhtml Scan your network, and save the network devices list into HTML file (Vertical).
/sxml Scan your network, and save the network devices
list into XML file.