Try again step by step.
I need to go home. The following examples are for your reference.
@echo off
echo All user account IDs are:
echo.
for /f "skip=4 tokens=1-3" %%i in ('net user') do (
if not "%%i"=="The command completed successfully." echo %%i
if not "%%j"=="" echo %%j
if not "%%k"=="" echo %%k
)
echo.
echo The current user account ID is: %username%
pause>nul
Show progress bar.bat
@echo off
:: code by jm 2006-11-30 CMD@XP
set var=">"
set/p=Loading: <nul
ping -n 2 127.1>nul
for /l %%i in (1,1,20) do (
set/p=%var%<nul
ping -n 2 127.1>nul
)
echo.
echo.
pause
I need to go home. The following examples are for your reference.
@echo off
echo All user account IDs are:
echo.
for /f "skip=4 tokens=1-3" %%i in ('net user') do (
if not "%%i"=="The command completed successfully." echo %%i
if not "%%j"=="" echo %%j
if not "%%k"=="" echo %%k
)
echo.
echo The current user account ID is: %username%
pause>nul
Show progress bar.bat
@echo off
:: code by jm 2006-11-30 CMD@XP
set var=">"
set/p=Loading: <nul
ping -n 2 127.1>nul
for /l %%i in (1,1,20) do (
set/p=%var%<nul
ping -n 2 127.1>nul
)
echo.
echo.
pause

