@echo off
echo 本機全部用戶:>>user.txt
for /f "skip=4 tokens=1-3" %%i in ('net user') do (
if not "%%i"=="命令成功完成" echo %%i>>user.txt
if not "%%j"=="" echo %%j>>user.txt
if not "%%k"=="" echo %%k>>user.txt
)
echo .
echo 當前登錄本機的帳戶是:>>user.txt
echo %username%>>user.txt
exit>nulide