Home > front end >  Move All Files from all Subfolders to Parent Folder using batch script
Move All Files from all Subfolders to Parent Folder using batch script

Time:07-27

How can someone move all files from all subfolders to parent folder using batch script. In the code below that I copied and pasted, shows how to do it but I have multiple parent folders that I need to do this in. I want to not have to edit the code for every time I have to do this.

Original

@echo off
set "source=C:\some dir\A"
set "dest=F:\other dir\B\"
for /r "%source%" %%d in (*) do move "%%d" "           
  • Related