- @echo off
- Setlocal enabledelayedexpansion
- for /f "tokens=2* delims=:" %%i in ('netsh wlan show profiles') do (
- set str=%%i
- for /f "tokens=3* delims= " %%d in ('netsh wlan show profiles key^=clear name^="!str:~1!"^| findstr "关键内容"') do (
- echo !str:~1! 密码:[%%d]
- echo !str:~1! 密码:[%%d]>>wifi.txt
- )
- )
复制代码
|