Consider a directory D:\Games in which there are multiple folders and inside each folder there are multiple files..how do i copy all the files only from these foldrers to E:\Games.. Note: Only the files from these folders have to be copied to E drive not the folders..
Is there any way? Need Help...
dir /s /ad > junk1.txt find "Directory of" junk1.txt > junk2.txtYou have a list of all the directories to copy from!
OR the easier route:
FOR /R D:\GAMES %%i IN (1) DO COPY *.* E:\GamesSee "FOR /?" for help.
Its not entering the directory rather than its taking the files which is kept outside the folders..the batch should enter each and every folder ands have to copy only the files to another folder
Try each of the following: FOR /R D:\GAMES %%i IN (.) DO COPY *.* E:\Games FOR /R D:\GAMES %%i IN (*.*) DO COPY %%i E:\GamesDon't forget to check the on-screen help for debugging ("FOR /?").
Did you remember to enable Command Extensions?
| « Batch files to find certa... | [Solved] search and move inside sa... » |