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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -