Page 1 of 1

Get numeric name of current folder, add 1 to it?

Posted: 10 Dec 2019 08:51
by Dougmeister
I have a folder for each day of the month and make changes to one file. I then need to manually copy it to the next day.

I.e., I am in folder "10". Once I'm done changing file X.txt, I need to copy it to "..\11\X.txt".

I'm sure this can be done in a batch file but I'm not sure how. Any ideas?

Re: Get numeric name of current folder, add 1 to it?

Posted: 10 Dec 2019 11:07
by aGerman
Say, today is Dec., 31st 2019. How does the path look like for tomorrow? And are zeros prepended to one-digit months and days?

Steffen