• 注册
    • 回帖总排行
    • 采纳总排行
    • 财富排行榜
    • 等级排行榜
  • learner
    We are the best gift for each other
    3002511金币
    关注
  • admintest
    We are the best gift for each other
    25金币
    关注
  • 讓歷史重演
    We are the best gift for each other
    2金币
    关注
  • 冰冷
    We are the best gift for each other
    2金币
    关注
  • 扬子江
    We are the best gift for each other
    2金币
    关注
  • 空白格‭
    We are the best gift for each other
    2金币
    关注
  • 相似的清风
    We are the best gift for each other
    2金币
    关注
  • 神经蛙
    We are the best gift for each other
    2金币
    关注
  • 高谈
    We are the best gift for each other
    2金币
    关注
  • 低调
    We are the best gift for each other
    2金币
    关注
  • learner
    We are the best gift for each other
    老铁/ 443 经验
    关注
  • admintest
    We are the best gift for each other
    小兵/ 7 经验
    关注
  • 讓歷史重演
    We are the best gift for each other
    小兵/ 0 经验
    关注
  • 冰冷
    We are the best gift for each other
    小兵/ 0 经验
    关注
  • 扬子江
    We are the best gift for each other
    小兵/ 0 经验
    关注
  • 空白格‭
    We are the best gift for each other
    小兵/ 0 经验
    关注
  • 相似的清风
    We are the best gift for each other
    小兵/ 0 经验
    关注
  • 神经蛙
    We are the best gift for each other
    小兵/ 0 经验
    关注
  • 高谈
    We are the best gift for each other
    小兵/ 0 经验
    关注
  • 低调
    We are the best gift for each other
    小兵/ 0 经验
    关注
  • 精品分享 关注:1 内容:146

    【bat脚本】读取当前设备wifi密码(仅win10测试)

  • 查看作者
  • 打赏作者
  • 拉黑名单
    • ///代码开始

      @echo off

      color 2f

      mode con: cols=40 lines=15

      title WiFi密码查询

      echo 正在查询结果

      for /f “tokens=2* delims=:” %%i in ('netsh wlan show profiles') do (

          for /f “tokens=* delims= ” %%a in (“%%i”) do (

              for /f “tokens=3* delims= ” %%d in ('netsh wlan show profiles key^=clear name^=”%%a”^| findstr “关键内容” ') do (

              echo “%%a”密码为:【%%d】

              )

          )

      )

      echo 任意键退出查询

      pause>nul

      ///代码结束

      大概是第一次for循环去读取wifi名称
      第二次循环的目的是去除第一次循环获取的多余的一个空格(感觉写的不好。。。又不知道咋截取,干脆用循环去分割吧,如果有更好的写法欢迎在回复里提出。)
      第三次是获取对应wifi名字的信息,然后用findstr去找关键内容那一行,如果找到了就分割一下(老分割了。。。)写出密码
      没有密码就拉倒。。。
      绿色无残留,安全无捆绑
      无须管理员权限运行(似乎是的)
      无须额外配置,一键获取全部以保存的wifi名及其密码

      食用方法:
      复制代码,粘贴到记事本里
      注!最好不要用第三方编辑器。。。。
      win10默认的保存语言是utf-8,bat只支持ANSI,中文编码错误保存会乱码

      你需要登录,才能进行发帖操作
    • 单栏布局 帖子间隔 侧栏位置: