Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal enableDelayedExpansion
- set list=a b c d e f
- set /A index= 5
- echo while loop...
- :while
- if %index% == -1 (goto endwhile)
- echo !%list[%index%]%!
- set /A index-= 1
- goto while
- :endwhile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement