windows-nt/Source/XPSP1/NT/ds/netapi/svcimgs/ntrepl/logrange.cmd

22 lines
427 B
Batchfile
Raw Normal View History

2020-09-26 03:20:57 -05:00
@echo off
rem LOGRANGE FROM_INDEX TO_INDEX ENV_VAR
REM
REM build a range of log file names over the index range and assign it to ENV_VAR
rem
set from_index=%1
set to_index=%2
set env_var=%3
set list=
for /l %%x in (%from_index%, 1, %to_index%) do (
rem Put leading zeros on the number part.
set number=0000000%%x
set fname=NtFrs_!number:~-4!.log
set list=!list! !fname!
)
set !env_var!=!list!