Copy search results with full path

Discussion in 'Windows Vista General Discussion' started by VistaUser, Dec 4, 2008.

  1. VistaUser

    VistaUser Guest

    Is there a way to copy the results of a search into a folder and maintain
    the directory structure of the original files? For example, when searching
    for protected music content in my Music folder, I get over 500 records. I
    wish to copy these records to a different drive but when I select ALL from
    the search results window and drop them into a new folder on a different
    drive, the original path information is lost.

    I have come up with a "workaround" but it is tedious: I drop the files into
    WinZip (with the "Save full path" option ticked in WinZip) and then extract
    them to the new location. Seems like there should be an easier way to
    accomplish this in Windows.
     
    VistaUser, Dec 4, 2008
    #1
    1. Advertisements

  2. If you are interested in using command line or batch scripts, I can spend a
    bit of time making a command using ROBOCOPY or the bewildering array of
    switches in XXCOPY. I'm not going to bother unless you want to do this, as
    it will take a few minutes.

    Otherwise, I am pretty sure that you can use SyncToy 2.0.

    http://www.microsoft.com/downloads/...36-98e0-4ee9-a7c5-98d0592d8c52&displaylang=en

    ss.
     
    Synapse Syndrome, Dec 4, 2008
    #2
    1. Advertisements

  3. VistaUser

    VistaUser Guest

    Thanks. Your offer is very kind. My question was somewhat academic, as I
    had actually accomplished what I needed by using the workaround I mentioned
    in my original post. Interestingly enough, I had tried using the native
    Windows folder compression program to see if I could compress the folder and
    subsequently extract the files to my desired target location, but after
    about 10 minutes of watching Windows crawl through the compression of
    hundreds of files, I aborted the process and resorted to using WinZip.
    WinZip compressed the files in a minute or so and I managed to complete the
    task without any problems.

    I am an old DOS geezer who used to live on the command line. I don't miss
    the command line, especially the switches and parameters I had to master in
    order to use programs like PKZIP and, yes, COPY and XCOPY. Been there.
    Done that. God spare me from that experience again!

    I will look into SyncToy for future potential use.

    Thanks again.
     
    VistaUser, Dec 4, 2008
    #3
  4. VistaUser

    Jon Guest

    Part of the problem is that it's ambiguous. For example, what would be the
    expected folder structure if search results threw up 2 identically named
    files eg

    C:\SomeFolder\SomeFile.txt
    D:\SomeFolder\SomeFile.txt

    But without being pedantic, yes an appropriately written script would sound
    like the way to go. Ir's also possible to script 'windows search' to be able
    to do it all from the command line, eg using vbscript or powershell.
     
    Jon, Dec 4, 2008
    #4
  5. FYI, XYplorer File Manager offers this as a standard feature under the label
    "Rich Move/Copy". Works via drag'n'drop directly from the Search Results
    listing. The folder structure is recreated in the target folder relative to
    the top folder of a recursive search.

    Tip: The free trial version will do the job without pay for 30 days...

    http://www.xyplorer.com/

    Don
     
    Donald Lessau, Dec 4, 2008
    #5
  6. VistaUser

    VistaUser Guest

    Thank you. Will try.
     
    VistaUser, Dec 4, 2008
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.