This is my first question in this beautiful website. As you probably read in the title I would like to rename a variable number of files, with a sequence of numbers in cmd and a batch file, the sequence is increasing and it is like this (1, 2, 3, 4, 5, 6, 7, 8, 9, 10...). For example:
Test.txt it should become 1.txt
Another.txt should become 2.txt
And so on, all automatically.
My idea was to set up a variable like set /a number=1
and add +1 like this set number="%number%+1"
to it through a loop and rename each time, but it isn't possible since when I rename files with ren
command it renames all at once.
Can anyone help me providing a cmd and a batch file version?
Thanks in advance