For Example:
I have
- C:\Folder\Subfolder1\SubfolderA\file1.pdf
- C:\Folder\Subfolder1\SubfolderB\file2.pdf
- C:\Folder\Subfolder1\Subfolderc\file3.pdf
And I just want to have this path:
- C:\Folder\Subfolder1\SubfolderA
- C:\Folder\Subfolder1\SubfolderB
- C:\Folder\Subfolder1\Subfolderc
- C:\Folder\Subfolder1\file1.pdf
- C:\Folder\Subfolder1\file2.pdf
- C:\Folder\Subfolder1\file3.pdf
I am using Windows 7, and tried different commands in CMD, like:
Move C:\Folder\Subfolder1\SubfolderA\*.* C:\Folder\Subfolder1\SubfolderA
I spent almost a day exploring different solutions to do this since I am working around thousands of files; and so impractical to do this manually.
Try this command
Be careful of files with duplicate names. It will overwrite. I would recommend you to try first with some test file to see whether you get the desired results.
Thanks!
I think I understood you correctly, so, below there's the solution.
Imagine there are two folders:
C:\ABC
and
C:\ABC\XYZ
to transfer all files from
C:\ABC\XYZ
toC:\ABC
do the following:Navigate to
C:\ABC\XYZ
Execute the command:
move *.* ..
and that's it.
All files from
C:\ABC\XYZ
will be moved to the parent folder, i.e toC:\ABC\
Below, there are pictures to demonstrate this solution.
ABC
containsXYZ
folderXYZ
and there are some files existmove *.* ..
command to transfer files to the parent (ABC
) folderXYZ
is emptyAnd all files from
XYZ
are inABC
(parent folder) now