Here is what I came up with using something I found on the internet. I tried using your method but was not successfully in combining two variables. I will keep trying. @echo off set obj[0].Name=Rajesh set obj[0].ID=First set obj[1].Name=John set obj[1].ID=Second set obj[2].Name=Kanta set obj[2].ID=Third FOR /L %%i IN (0 1 2) DO ( call echo %%obj[%%i].Name%% is the %%obj[%%i].ID%% winner timeout /t 5 /nobreak ) pause
@ranapratapsingh19862 ай бұрын
Completed
@Bob-zz1dlАй бұрын
Completed. Here is the completed assignment! @echo off title Batch Script Array Example Color A setlocal enabledelayedexpansion set Name=Rakesh Mohan Ravi set /a rank=3 for %%b in (%Name%) do ( cls echo Congratulations to the !rank! place winner: %%b! set /a rank-=1 timeout /t 5 /nobreak )
@maxautism660211 ай бұрын
Technically speaking it's not a list nor an array. It's a variable holding a string and you loop through the names. But this is a good video nonetheless. Completed.
@Artheeswaran-fk6zs4 ай бұрын
completed
@MikeMasanga7 ай бұрын
completed
@marthamisquitta Жыл бұрын
Still trying to complete the assignment
@PraveenSingh-cl2or Жыл бұрын
This is the assignment below @echo off color 0A title Prize Ceremony setlocal enabledelayedexpansion set winners=Praveen Kanchan Diyansh Reyansh set /a rank=1 for %%i in (%winners%) do ( cls echo Congratulations to the !rank! place winner: %%i! set /a rank+=1 timeout /t 5 /nobreak ) pause