Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
427 B

  1. @echo off
  2. rem LOGRANGE FROM_INDEX TO_INDEX ENV_VAR
  3. REM
  4. REM build a range of log file names over the index range and assign it to ENV_VAR
  5. rem
  6. set from_index=%1
  7. set to_index=%2
  8. set env_var=%3
  9. set list=
  10. for /l %%x in (%from_index%, 1, %to_index%) do (
  11. rem Put leading zeros on the number part.
  12. set number=0000000%%x
  13. set fname=NtFrs_!number:~-4!.log
  14. set list=!list! !fname!
  15. )
  16. set !env_var!=!list!