Computing.Net > Forums > Disk Operating System > Deleting files older than 30 days.

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 older than 30 days.

Reply to Message Icon

Name: VK200
Date: August 13, 2003 at 05:31:07 Pacific
OS: win 2k
CPU/Ram: 536 MB
Comment:

Hi,
How to delete the files older than 60 days from a folder say 'temp' using dos commands ?
Should I use a batch file or can make it with pipes?

(I don want to use any utility or 'C' programs)
Please throw me some light in this regard,

Thanks,
Vijay



Sponsored Link
Ads by Google

Response Number 1
Name: Secret_Doom
Date: August 13, 2003 at 11:57:29 Pacific
Reply:

There is absolutely no way you're going to do this with a single command built in a microsoft command interpreter. CMD.exe is far from having such capabilibites.

An external solution is required, wether written in batch, C, assembler or whatever. There are even command interpreters compatible with Windows that can do the described task with internal commands. But Microsoft itself doesn't seem to have thought about that when making its command prompts, so far (who knows, maybe on an upcoming version of windows...)

-- Leonardo Pignataro - Secret_Doom --

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


0

Response Number 2
Name: TheONE
Date: August 26, 2003 at 11:35:11 Pacific
Reply:

This might help:

http://home7.inet.tele.dk/batfiles/monthly/dec2000.htm


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: Deleting files older than 30 days.

delete text files more than 7 days www.computing.net/answers/dos/delete-text-files-more-than-7-days-/16658.html

Using NT-DOS to automatically delete files that are too old www.computing.net/answers/dos/using-ntdos-to-automatically-delete-files-that-are-too-old/2585.html

Help with deleting files by date... www.computing.net/answers/dos/help-with-deleting-files-by-date/9101.html