Author Topic: Move files from multiple subfolders to a big one (Windows, bat script)  (Read 92 times)

spiros

  • Administrator
  • Hero Member
  • *****
  • Posts: 296449
  • Gender: Male
  • point d’amour
    • spiros.doikas
    • greektranslator
    • doikas
    • 102094522373850556729
    • lavagraph
    • Greek translator CV
Move files from multiple subfolders to a big one

Code: [Select]
FOR /R "C:\SourceFolderPath" %%i IN (*.html) DO MOVE "%%i" "C:\TargetFolderPath"
Save the above in a .txt file; rename the extension to .bat and run it by clicking on it, but first:

Change:
C:\SourceFolderPath = path of your subfolders
C:\TargetFolderPath = path of the new big folder
*.html = the type of files you want moved
« Last Edit: 10 Aug, 2017, 08:20:37 by spiros »