Results 1 to 3 of 3

Thread: Delete files based on creation date?

  1. #1
    Hank Arnold (MVP) Guest

    Delete files based on creation date?

    I have a process that backs up some Citrix farm information on a
    periodic basis. The files are not large, but the number gets very large,
    very fast.

    Is there a simple command driven way to delete all files that were
    created more than x days before? I'd like to run this as a scheduled
    task on the server where the files are stored..

  2. #2
    Pegasus \(MVP\) Guest

    Re: Delete files based on creation date?

    You could use batch file:
    @echo off
    set x=30
    set source=d:\My Data
    xxcopy /rs /db#%x% /ed /yy "%Source%\*.*"

    You can download xxcopy.exe from a number of sites.

  3. #3
    Join Date
    Oct 2010
    Posts
    1

    Re: Delete files based on creation date?

    This is incorrect. /db deletes by modified date not by created date.

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. Modify file or folder creation date
    By Abode in forum Portable Devices
    Replies: 4
    Last Post: 24-09-2010, 07:35 AM
  3. Create new folder and move files based on creation date
    By dstiff in forum Windows Server Help
    Replies: 3
    Last Post: 13-11-2009, 05:04 AM
  4. Replies: 2
    Last Post: 10-06-2009, 11:16 AM
  5. How to find Account creation date in Active Directory
    By MilesAway in forum Active Directory
    Replies: 2
    Last Post: 12-12-2008, 07:20 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,714,114,133.66325 seconds with 17 queries