-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Would like to have something like
:: Increment the last digit of each number in the path
FOR /L %%i IN (0,1,31) DO (
SET "char=!source:%%i,1!"-1!+1"
IF "!char!" GEQ "0" IF "!char!" LEQ "9" (
SET "num=!num!!char!"
) ELSE (
IF DEFINED num (
SET /A "lastDigit=!num:
SET "num=!num:~0,-1!!lastDigit!"
SET "newPath=!newPath!!num!"
SET "num="
)
SET "newPath=!newPath!!char!"
)
)
IF DEFINED num SET "newPath=!newPath!!num!"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels