Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Copy multiple sub-folders from text file

  • 26-08-2020 02:23PM
    #1
    Registered Users, Registered Users 2 Posts: 2,181 ✭✭✭


    Hi
    I have c. 1000 sub-folders on a hard drive.
    I have a text file of 120 folder names which are contained within that 1000 strong group.
    All of the 120 folders will be in that single directory, they aren't within other folders.

    is there any easy way of copying all the folders and contents which match the list of folder names to a single directory?


Comments

  • Registered Users, Registered Users 2 Posts: 2,913 ✭✭✭Ten Pin


    Search the directory with the list pasted into the search field, just separate each name with a comma. If it won't accept all 120 at once then just split the list. Then copy the folders from the search results.


  • Registered Users, Registered Users 2 Posts: 4,423 ✭✭✭smuggler.ie


    i believe there is powershell script available somewhere on net or could be created to parse through directory and copy those from csv file...


  • Registered Users, Registered Users 2 Posts: 3,732 ✭✭✭Metric Tensor


    I'd say you could (without too much hassle) convert that text file into a batch file for robocopy and do it that way.


Advertisement