查看WINDOWS曾经连接过的无线及密码
BAT文件内容:
netsh wlan show profile set /p wifiName=请输入要查看密码的WIFI名: echo %wifiName% netsh wlan export profile name=%wifiName% folder=. key=clear :: 打开文件 :: start "" %cd%"\WLAN-%wifiName%.xml" @echo off for /f "tokens=*" %%i in ('findstr "<keyMaterial>.*</keyMaterial>" %cd%"\WLAN-%wifiName%.xml"')do set "s=%%i" set "s=%s:"=“”%" for /f "delims=<" %%j in ("%s:*<keyMaterial>=%")do set "keyMaterial=%%j" set "keyMaterial=%keyMaterial:“”="%" echo 您要的WIFI密码是: %keyMaterial% pause