Results 1 to 4 of 4

Thread: Create new folder and move files based on creation date

  1. #1
    dstiff Guest

    Create new folder and move files based on creation date

    Hi Forum,

    I am fairly new to scripting and am looking for a solution that will create
    a new subfolder for each month and then move files into that folder from the
    main folder based on the creation date. Ran on a daily basis.

    i.e. - text.txt created 01-01-2008
    (Create folder within c:\Folder\Date to January....then move all files
    within c:\Folder\Date that were created from 01-01-2008 to 01-31-2008 to the
    newly created folder.

    Any assistance would be greatly appreciated.

  2. #2
    McKirahan Guest

    Re: Create new folder and move files based on creation date

    Will the January folder be called: C:\Folder\Date\January

    Will files created in January of other years also be moved there too?

    Perhaps you want C:\Folder\2008\January?

  3. #3
    Al Dunbar Guest

    Re: Create new folder and move files based on creation date

    when you move another file named text.txt into the same monthly
    subfolder, do you want it to replace the older one of the same name, or do
    you want its name changed somehow to avoid this?

  4. #4
    Join Date
    Nov 2009
    Posts
    1

    Re: Create new folder and move files based on creation date

    Hello,

    I have been looking to do exactly the same thing.

    By year, by month.

    So it would be
    c:\folder\2009\November

    etc...

    Is this possible? Would you run this through a cron job once per month?

    Hope you can help...

Similar Threads

  1. Script needed to Delete Files in a Directory Based on Date
    By adaher008 via WinServerKB.com in forum Windows Server Help
    Replies: 11
    Last Post: 02-01-2012, 01:44 AM
  2. Unable to create or move files in Windows 7 64 Bit
    By Nicole Kidman in forum Operating Systems
    Replies: 4
    Last Post: 24-01-2011, 12:05 PM
  3. Delete files based on creation date?
    By Hank Arnold (MVP) in forum Windows Server Help
    Replies: 2
    Last Post: 19-10-2010, 12:55 AM
  4. Modify file or folder creation date
    By Abode in forum Portable Devices
    Replies: 4
    Last Post: 24-09-2010, 07:35 AM
  5. Bat file to Create folder with date
    By Jaheel in forum Software Development
    Replies: 3
    Last Post: 20-06-2009, 07:48 PM

Tags for this Thread

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
  •  
Page generated in 1,711,687,524.42256 seconds with 17 queries