Computing.Net > Forums > Disk Operating System > Deleting Files by 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.

Deleting Files by Date??

Reply to Message Icon

Name: K
Date: July 8, 2002 at 05:53:53 Pacific
Comment:

Hi there, this is probably and easy one, but does anyone know the DOS command for deleting files by date....?????



Sponsored Link
Ads by Google

Response Number 1
Name: palanivelu
Date: July 8, 2002 at 08:39:43 Pacific
Reply:

sir,
i want to know how to delete files by date in dos.can you halp me in this regard.
bye


0

Response Number 2
Name: Secret_Doom
Date: July 8, 2002 at 14:47:25 Pacific
Reply:

No, this isn't an 'easy one', since there is no command that can do it directly -- a work-around is required.

The XCOPY.exe command has the /D (/D:date) switch, which copies only files modifyed on or after the date specified. Example:

xcopy *.jpg .\TEMPFOLD /d:05/01/02

You can copy the files which you DON'T want to del to a temporary folder, than delete all files and recover the files which shouldn't be deleted.

This idea will give a very useful batch file. I'll develop it and post it soon here.

Stand by. Meanwhile, you can do it manually.

-- Leonardo Pignataro - Secret_Doom --

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


0

Response Number 3
Name: dtech10
Date: July 13, 2002 at 18:13:42 Pacific
Reply:

Hi K
Secret Doom is right by saying it's not an easy one, I'm not sure how it could be done in a batch file but I could try writing one using the C programming language and email it to you. Do you want to delete a specific date or delete files with dates less or greater than a specific date or all three.
let me know.



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Boot directly into Dos upgrading dos



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: Deleting Files by Date??

Deleting Files by Date?? www.computing.net/answers/dos/deleting-files-by-date/10697.html

delete old files by date www.computing.net/answers/dos/delete-old-files-by-date/13057.html

Delete files by date (DOS) www.computing.net/answers/dos/delete-files-by-date-dos/2106.html