Consulting

Results 1 to 20 of 22

Thread: Move files based on specific words location in new folders

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Move files based on specific words location in new folders

    Hello
    I'm new here , and searched too much in the internet to getting what I want, but still nothing until now .
    I have files in this device C:\Users\MSS\Desktop\ABSI like this
    C:\Users\MSS\Desktop\ABSI\APPVD INV10000A-00.xlsb
    C:\Users\MSS\Desktop\ABSI\EXTRA\CCVB AAAA100 200A.xlsm
    C:\Users\MSS\Desktop\ABSI\EXTRA\SSSSVB REP_222AQ12.pdf
    what I wan:
    1- create folder in main folder "ABSI " based on current year like this YEAR_2025 to become directory C:\Users\MSS\Desktop\ABSI\YEAR_2025
    2- create folders based on first part is existed in file name and put inside YEAR_2025 folder like this PPVD,CCVB,SSSSVB and ignore files names don't contain theses three words become directory C:\Users\MSS\Desktop\ABSI\YEAR_2025\PPVD
    C:\Users\MSS\Desktop\ABSI\YEAR_2025\CCVB
    C:\Users\MSS\Desktop\ABSI\YEAR_2025\SSSSVB
    3- create folders inside folders PPVD,CCVB,SSSSVB based on current month like this
    EXTRACTION_JAN , EXTRACTION_FEB and so on to become directory like this
    C:\Users\MSS\Desktop\ABSI\YEAR_2025\PPVD\EXTRACTION_JAN
    C:\Users\MSS\Desktop\ABSI\YEAR_2025\PPVD\EXTRACTION_FEB
    4- move files from directory to folders EXTRACTION_JAN , EXTRACTION_FEB based on first part within folders PPVD,CCVB,SSSSVB based on current month and current year.
    like this
    C:\Users\MSS\Desktop\ABSI\YEAR_2025\PPVD\EXTRACTION_JAN\APPVD INV10000A-00.xlsb
    so should moves files from folders and subfolders and sub - subfolders.
    thanks.
    Last edited by Mussa; 05-12-2025 at 04:10 AM.

Posting Permissions

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