I tried to run password generator from youtube. Here's the code:
@echo off
chcp 1257
setlocal EnableDelayedExpansion
set alpha=
aąbcčdeęėfghiįjklmnopqrsštuųūvwxyzžAĄBCČDEĘĖFGHIĮJKLMNOPQRSŠTUŲŪVWXYZŽ
For /L %%j in (1,1,13) DO CALL:GEN
echo Your Random Password is [ %PASSWORD% ]
EndLocal
pause
:GEN
For /L %%j in (1,1,10) DO (
if %random% gtr 10000 ( set PASSWORD=%PASSWORD%%random:~0,1% ) else (
set /a i=%random:~1,1%+%random:~1,1%
if !i! gtr 25 set i=25
set PASSWORD=%PASSWORD%!alpha:~%i%,1! )
)
This returns 1 random password. And I need 10 passwords, so I tried to create for loop before this line: For /L %%j in (1,1,13) DO CALL:GEN . Then it returns 10 rows of text but without passwords:
Active code page: 1257
Your Random Password is [ ]
Your Random Password is [ ]
Your Random Password is [ ]
Your Random Password is [ ]
Your Random Password is [ ]
Your Random Password is [ ]
Your Random Password is [ ]
Your Random Password is [ ]
Your Random Password is [ ]
Your Random Password is [ ]
Press any key to continue . . .
How can I solve this?