Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.20 KB | None | 0 0
  1. @echo off
  2. setlocal enableDelayedExpansion
  3. set list=a b c d e f
  4. set /A index= 5
  5. echo while loop...
  6. :while
  7. if %index% == -1 (goto endwhile)
  8. echo !%list[%index%]%!
  9. set /A index-= 1
  10. goto while
  11. :endwhile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement