Computing.Net > Forums > Disk Operating System > Removing files based on creation date

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Removing files based on creation date

Reply to Message Icon

Name: KevP
Date: June 6, 2002 at 03:49:07 Pacific
Comment:

How can I get a list of files that were created more than 2 days ago? We need this for a tidy up routine - I've looked at options for dir, find etc. but can't seem to see an option

Also I need to identify zero size files if possible.

Thanks




Sponsored Link
Ads by Google

Response Number 1
Name: bradmatt
Date: June 6, 2002 at 05:14:21 Pacific
Reply:

try http://www.easydos.com/dir.html. they have a list of DOS commands including sorting by date & time.


0

Response Number 2
Name: Dan Penny
Date: June 6, 2002 at 07:05:37 Pacific
Reply:

This ~may~ be of help to you. From the latest LangaList newsletter;
=============================================
5) Finding a "Lost Gem"

Hi Fred: Love your Plus! edition immensely! Has been regularly helpful, even for an experienced old dog like me... :-) A couple of years ago (well, almost) one of your readers pointed the way to a DOS tool called DELAGE.exe - loved it... and lost it! Now I want it back, but the links that come up in Google (and all other search engines I've tried) either points to your newsletter from July 2000 or the missing site where it used to be available. Can you, or any of your loyal readers, help me get this gem back? Many thanks Paul Ross

"DelAge" is a handy one indeed: It deletes files based on their age, and so is an easy way to clean out older files from a directory/folder or system. You can find it--- and 31 other free and useful files--- at
http://home.mnet-online.de/horst.muc/horst.htm .


0

Response Number 3
Name: Secret_Doom
Date: June 6, 2002 at 19:34:04 Pacific
Reply:

XCOPY.EXE have the /D:date switch, which only copies files modified on or after the date given. You could try making something like this:

XCOPY.EXE/l/s/y/d:06042002 \*.*

That will give you the list (no, it will NOT copy any files, because of the /l switch)

Include the /n switch if you want to get the short names format (like PROGRA~1\etc)

After /d: you would put the date from two days ago. Now, calculating that date using the current date is a more complex... I reckon seeing a batch script to do that somewhere on the net, I think you can find it. I reckon it was from Laurence Soucy or maybe Laura Fairhead, but I'm very uncertain.

Type XCOPY/? for more information on using XCOPY.exe.

-- Secret_Doom - Leonardo Pignataro --

secret_doom@hotmail.com
www.batch.hpg.com.br


0

Response Number 4
Name: Secret_Doom
Date: June 6, 2002 at 19:36:22 Pacific
Reply:

Ooops, the XCOPY command format is wrong, use it like this:

XCOPY.EXE /l/s/y/d:04-06-2002 \*.* \

BTW, that will search the entire drive

-- Secret_doom - Leonardo Pignataro --

secret_doom@hotmail.com
www.batch.hpg.com.br


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Removing files based on creation date

Trying to purge files based on Date www.computing.net/answers/dos/trying-to-purge-files-based-on-date/13804.html

Create files based on the values of www.computing.net/answers/dos/create-files-based-on-the-values-of/16854.html

Most recent file on disk www.computing.net/answers/dos/most-recent-file-on-disk/12426.html