Scripts chuyển đổi định dạng test

by | Dec 1, 2023 | Uncategorized | 0 comments

@echo off
@REM Cú pháp for (start, step, end) do (.... )
for /l %%x in (1,1,23) do (
    if %%x LSS 10  (
        ren "0%%x" "0%%x".inp
        ren "0%%x".a "0%%x".out
    )
    if 10 LEQ %%x  (
        ren %%x %%x.inp
        ren %%x.a %%x.out
    )
)