查看本机中保存的WiFi用户和密码的bat脚本:
@echo off cd /d %~dp0 title 查询原系统中使用过的WiFi用户密码 setlocal enabledelayedexpansion :: 查询WiFi用户密码 netsh wlan show profile|findstr /i "所有" >wifi1.txt for /f "tokens=2 delims=:" %%i in (wifi1.txt) do ( set "Users=%%i" set "Users=!Users:~1!" netsh wlan show profile "!Users!" key=clear|findstr /i "名称 内容"|findstr /v SSID>>wifi2.txt ) :: 整理WiFi用户密码信息 set t=2 for /f "delims=" %%i in (wifi2.txt) do ( set /a t=t+=1 if !t! gtr 2 set t=1&echo --------------------------- set wifi=%%i set wifi=!wifi:名称=WiFi用户! set password=!wifi:关键内容=WiFi密码! for /f "tokens=1-4" %%a in ('echo !password!') do echo %%a %%b %%c %%d ) del /f /q wifi?.txt setlocal disabledelayedexpansion echo.&echo 如果提示找不到wifi2.txt文件,说明原系统没保存WIFI信息或不是WiFi上网&echo 查询完成,按任意键关闭窗口! & pause > nul |
本文链接:https://www.kinber.cn/post/4044.html 转载需授权!
推荐本站淘宝优惠价购买喜欢的宝贝: