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

Page 1 of 3 123 LastLast

  1. Posts : 231
    Windows 7
       #1

    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 Computer


  2. Posts : 231
    Windows 7
    Thread Starter
       #2

    Any ideas?
      My Computer


  3. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #3

    You want to move 1 folder with many folders/files in it to another destination?
      My Computer


  4. Posts : 12,012
    Windows 7 Home Premium SP1, 64-bit
       #4

    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 Computer


  5. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #5

    ignatzatsonic said:
    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 Computer


  6. Posts : 12,012
    Windows 7 Home Premium SP1, 64-bit
       #6

    Kaktussoft said:
    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 Computer


  7. Posts : 5,092
    Windows 7 32 bit
       #7

    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 Computer


  8. Posts : 5,092
    Windows 7 32 bit
       #8

    ( 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 Computer


  9. Posts : 12,012
    Windows 7 Home Premium SP1, 64-bit
       #9

    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 Computer


  10. Posts : 5,092
    Windows 7 32 bit
       #10

    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 Computer


 
Page 1 of 3 123 LastLast

  Related Discussions
Our Sites
Site Links
About 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:46.
Find Us