vba - Numbering a file and copy files ends with a specific digit -
I need to copy the file I already created (a.txt) and copy it so I have a1.txt Will be a2. Txt a3.txt etc. Unless I do not receive the A999999.txt, for example a4453.txt is copied files into a separate folder.
What is the best way to do this? Vb / batch file favorites.
thanks =] Daniel.
@echo off set for "different_folder = c: \ diff" / l %% Copy ("a.txt" "%% n.txt") to n (1; 1; 999999) / f %% f ('Dir /ba*.txt ^ | findstr / i / e' 3 Txt '') (Copy "%% ~ ff"% different_folder%)
has not been tested.
Comments
Post a Comment