Simple script to read 2 variables from text file, space-delimited

By , 2009-12-03 14:51

@ECHO off
for /F "eol=; tokens=1,2" %%A in (list.txt) do call :create %%A %%B
Goto END-create
REM ***************************************************************************
:create
echo %1 %2
REM net user %1 /add
goto :EOF

:END-create
ECHO.
pause
EXIT

Leave a Reply

 

Custom theme by me. Based on Panorama by Themocracy