Code: Select all
dir/s/b|for /f %i in ('find "test.txt"') do copy "%i" .\
This works, but it overwrites all copied instances leaving the last file copied (only 1 file).
I would like some help in adding a count feature to this so I'll be left with all copies of the file in the end.
The final result would be:
1test.txt
2test.txt
3test.txt