Skip to main content

All Questions

Tagged with
5 votes
5 answers
8k views

Copy file names with a certain number of characters in command line (CMD)

I need to copy all text files on one folder whose names are five characters long. I know this command is for listing: $ dir folder /B | findstr /R "^.....\.txt" but I want to copy all files whose ...
Stefano Manolo Costantini Ragn's user avatar