Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Can I move files from nested folders with a single command?

09 May 2014   #1
badspell68

Windows 7
 
 
Can I move files from nested folders with a single command?

Is it possible to move files from a location that has files contained in many folder of witch many are deeply nested in layers of other folders using a single command or some software tool? I would rather not spend hours copy and pasting files and trying to keep track of what I have moved.

Thank!


My System SpecsSystem Spec
.
09 May 2014   #2
badspell68

Windows 7
 
 

Any ideas?
My System SpecsSystem Spec
09 May 2014   #3
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

You want to move 1 folder with many folders/files in it to another destination?
My System SpecsSystem Spec
.

09 May 2014   #4
ignatzatsonic

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium SP1, 64-bit
 
 

I think he wants to move, not copy.

There's a move command, but I don't see a switch for subdirectories like the copy command has.

I'm sure there is a semi-slick way of doing a move with all subdirectories, but it's beyond my knowledge level.
My System SpecsSystem Spec
09 May 2014   #5
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Quote   Quote: Originally Posted by ignatzatsonic View Post
I think he wants to move, not copy.

There's a move command, but I don't see a switch for subdirectories like the copy command has.

I'm sure there is a semi-slick way of doing a move with all subdirectories, but it's beyond my knowledge level.
Just CUT the source and paste it somewhere alse. whnat's the problem of OP?
My System SpecsSystem Spec
09 May 2014   #6
ignatzatsonic

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium SP1, 64-bit
 
 

Quote   Quote: Originally Posted by Kaktussoft View Post
Just CUT the source and paste it somewhere alse. whnat's the problem of OP?
I don't know any more about his problem than you do.

Apparently, he wants a command line option rather than hand-selecting a bunch of files.
My System SpecsSystem Spec
09 May 2014   #7
MilesAhead

Windows 7 32 bit
 
 

If you mean recursively copy files without duplicating the folder structure, into a destination folder, rcopy will do it if the destination folder exists.

It does a copy, not a move. But you could do it in two commands. Example: the command prompt is open with C:\MyFolder as current directory. You would use these commands to move all srt subtitles to C:\MySubs

rcopy *.srt C:\MySubs
del *.srt /s

Edit: Make sure the rcopy destination is not inside the source folder tree. Otherwise the del /s command will delete them from the dest folder.
My System SpecsSystem Spec
09 May 2014   #8
MilesAhead

Windows 7 32 bit
 
 

( If some of you wonder why rcopy instead of just recursive copy, rcopy will skip the folder if the source and dest are the same. This enables copying to a dest in the source folder tree. I mainly wrote it to copy all subtitles to one folder for processing without deleting the originals. )
My System SpecsSystem Spec
09 May 2014   #9
ignatzatsonic

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium SP1, 64-bit
 
 

Thanks for that Miles. I might be able to use that myself.

I assume you might have over-write issues if you had 2 files in separate folders that had the same name. Would that command overwrite, skip, or alter the name as necessary?

There's a freeware program out there called Suction (suction.exe) that supposedly moves files "flat", without copying the folder structure. I ran across it a month ago, but haven't tried it.

And I think it can be done from Powershell, but I don't know the command.
My System SpecsSystem Spec
09 May 2014   #10
MilesAhead

Windows 7 32 bit
 
 

There's a /n switch for no overwite. Run with no params it shows a usage dialog. Also it has a sanity check. If the total files to copy are > 128 it prompts to continue. See included Readme.txt.
My System SpecsSystem Spec
Reply

 Can I move files from nested folders with a single command?




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
How to copy multiple .wma files in different folders to single folder?
I need to 'extract' .wma files from within many different folders to a single, main folder. It looks like this: Main Folder>Artist>Album>Track (.wma) but there are many artists. I want to get all the tracks from within the two subfolders into a single folder. I've searched around online and haven't...
Music, Pictures & Video
I need to move thousands of files from one folder to new folders
I need to figure out a way to take thousands of .dwg,.docx,.xlsx, ect. files and organize them all into folders. I want to take file named 54321.xlsx and 54321.docx and put them in the folder 54321. Right now all my .docx files are in a folder, but I want them all seperated by seperate folders. ...
Software
Can't move folders with files, but can move files
I am attempting to move folders and files around, doing a little organization on my HDD. However if I attempt to move the loaded folder I get the error message " The action can't be completed because the folder or a file in it is open in another program." However I have no other programs open,...
General Discussion
Nested Application Folders Directory (many times)
I re-installed Windows 7 so that I could run a 64bit version instead of the 32bit version. When I searched for old user files in Windows.old so that I could restore old favorites and documents, I found that All Users\Application Data had Application Data nested underneath it and that repeated many...
General Discussion
Nested folders in Favorites in Navigation Pane
Hi, I was wondering if it was possible to make the folders nested in the Favorites of the Navigation Pane. AFAIK nested folders work in both Libraries and Computer of the Navigation Pane, however when moved to Favorites they are just a simple link. I've Googled a bit and all signs point to no...
General Discussion
automatically delete/move files to folders
hi all! is there something like a handy method to automatically move files depending on their extension to custom folders? (either by the time they are generated or at a specific date). ps: b.) i would be also interested in finding a method to have windows7 delete files in custom folders at a...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:39.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App