有时总会忘记之前的wifi密码,这时候就需要查看wifi密码:

这个我就写了一个bat文件,方便下次使用,这里我添加了中文和英文的判断,主要是语言不同输出的信息不用,不说了直接上代码:

 1 @echo off
 2 echo WiFiPasswordSee
 3 echo ====================================
 4 echo Author:feiquan
 5 echo Create:2018/10/20 17:39
 6 echo UpdataDate:2018/10/20 23:24
 7 echo Version:1.1v
 8 echo Function:Look for your computer connnect WiFi password
 9 echo =====================================
10 :start
11 set leg=ch
12 set /p leg=确定你的Windows系统语言 英文/中文(en/默认:ch):
13 if %leg%==en (
14 rem English
15 netsh wlan show profiles |find "All User Profile"
16 ) else if %leg%==ch (
17 rem Chinese
18 netsh wlan show profiles |find "所有用户配置文件"
19 ) else (
20 goto start
21 )
22 
23 echo =====================================
24 
25 
26 :loop
27 set /p name=Input your WiFi name(SSID):
28 if %leg%==en (
29 rem English
30 (netsh wlan show profiles name="%name%" key=clear |find "SSID name")||echo     SSID name              : "%name%" 
31 (netsh wlan show profiles name="%name%" key=clear |find "Key Content")||echo     Key Content            : NO exist
32 ) else if %leg%==ch (
33 rem Chinese
34 (netsh wlan show profiles name="%name%" key=clear |find "SSID 名称")||echo     SSID 名称            : "%name%" 
35 (netsh wlan show profiles name="%name%" key=clear |find "关键内容")||echo     关键内容            : NO exist
36 ) else (
37 goto start
38 )
39 echo =====================================
40 set temp=y
41 set /p temp=Continue to look up other WiFi password(默认:y/n):
42 if "%temp%"=="y" goto loop
43 pause
44 exit

 

运行结果:

 

版权声明:本文为feiquan原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/feiquan/p/9823402.html