+ Reply to Thread
Results 1 to 2 of 2

move multiple files to multiple folders by their name

  1. #1
    Registered User
    Join Date
    06-20-2011
    Location
    Bismarck
    MS-Off Ver
    Excel 2003
    Posts
    1

    move multiple files to multiple folders by their name

    I need to move multiple files to their corresponding folders.

    My data are image layers along with supporting files. They start with a location name and each of them need to go to a folder with same location name.
    for eg. Ward_N_pr.tif
    Ward_N_pr.aux
    Ward_N_pr.xml

    These all go to a single folder named Ward_N

    similarly
    Bark_boy_N_SW_pr.tif
    Bark_boy_N_SW_pr.aux
    Bark_boy_N_SW_pr.xml

    these three go to folder named Bark_boy_N_SW.
    And there are >1000 of these kinds that all need to be moved to their respective folders.

    Can anyone help me with my problem?

    Thanks
    Nav

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: move multiple files to multiple folders by their name

    Hello Nav123,

    Welcome to the forum!

    It would help if you can post a more complete list of the file names. This will help in writing code to parse the folder name from the file name. If it is possible to post the workbook then that would be better.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1