- @echo off
- if "%~1" == "OK" (
- for /f "skip=4 delims=" %%a in ('net user') do (
- set "str=%%a"
- setlocal enabledelayedexpansion
- for /l %%b in (0 25 75) do echo,!str:~%%b,25!
- endlocal
- )
- exit /b
- ) else (
- for /f "delims=" %%a in ('"%~0" OK ^| findstr /ib F') do (
- echo,net user "%%~nxa" /Delete
- )
- pause
- )
复制代码
|