I need to find a way to select all files that are alone in their folders, so I can cut and paste them someplace else. All respective folders are inside one main root folder. Is there a command prompt, or total commander trick for this?
Windows 7 – Find all files that are alone in a folder
file searchfindwindows 7
Best Answer
This Batch will look inside
C:\TEST 1
sub folders an count files. once it finds a lonely file it'll move it toC:\TEST 2
. it will also ask for overwrite in case file name already exist.Replace
C:\TEST 1
andC:\TEST 2
with your own values.you can add
pause
at end of the batch to read the files count echo'ed by it.