系统运维
@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>nul