- @echo off
- rem 批处理保存为ansi编码格式
- for /f "tokens=2*" %%i in ('netsh wlan show profiles ^|find "所有用户配置文件"') do (
- for /f "tokens=2*" %%d in ('netsh wlan show profiles key^=clear name^="%%j" ^|find "关键内容"') do (
- echo %%j 密码:[%%e]
- echo %%j 密码:[%%e]>>wifi.txt
- )
- )
- pause
复制代码
|