运行脚本的内容修改为以下后可以正常使用了
作者定义的窗口范围小了点,改大后就有滚动条了,而且可以看到全部内容。
@echo off&&mode con cols=60 lines=200
title 以下为本机所连接过WIFI信息及密码
echo **************************************************************
for /f "tokens=3*" %%i in ('netsh wlan show profiles ^| findstr "所有用户配置文件"') do (
call :GetPass %%i %%j
)
pause
goto :eof
:GetPass
echo WiFi : %*
for /f "delims=" %%a in ('netsh wlan show profile name^="%*" key^=clear ^| findstr "关键内容"') do (
echo %%a
)
echo --------------------------------------------------------------
goto :eof