windows - 如何使用 VB6 或 BAT/CMD 列出连接到我的 WiFi 网络的设备?

标签 windows batch-file cmd vb6 wifi

我正在制作一个程序来列出连接到我的 Wi-Fi 网络的所有设备,以便我可以查看是否有其他人连接。

我找到了 CMD 的代码 - net view 但它只列出了连接到我的 Wi-Fi 的计算机,而不是移动设备。是否有任何其他命令可以使用 CMD 列出连接到我的 Wi-Fi 的移动设备。

最佳答案

您需要一个名为: Wireless Network Watcher 的外部工具

enter image description here

描述:

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.

关于windows - 如何使用 VB6 或 BAT/CMD 列出连接到我的 WiFi 网络的设备?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36698037/

相关文章:

python - 在 python 中的 input() 提示符之前打印文本

python - 如何使用Python检查字符串是否是有效的shell命令?

windows - 为什么只有管理员权限才能在 Python 中导入某些模块?

c++ - 如何使用带套接字的重叠 I/O?

css - Firefox 5 样式复选框奇怪的背景

batch-file - 为什么 cmd.exe 在 64 位机器上有不同的错误级别行为?

windows - 使用 "ren"在 cmd 中更改文件名

asp.net - 在 Docker 容器 ASP.NET 应用程序中集成 Windows 身份验证

windows - 有没有一种简单的方法可以从嵌套的批处理脚本中捕获错误代码 (%errorlevel%)?

windows - 来自CMD命令提示符的Docker错误:运行SSH命令时出现问题