Computing.Net > Forums > Programming > Batch scrip to delete

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.

Batch scrip to delete

Reply to Message Icon

Name: kalyani
Date: July 17, 2008 at 12:17:38 Pacific
OS: XP
CPU/Ram: intel
Product: 2006
Comment:

Hi ,

I have to delete files from a network drive..(which is accessible from my system)via a batch script, that are older than 3 days...the file name is a system generated number with .txt extension like below..

R76798667535778.txt
R76798343334442.txt

I have to run the batch script every day which has to delete files older than 3 days from the network drive..how can i do this in .bat programing..

Please suggest...

Thx,
Kalyani



Sponsored Link
Ads by Google

Response Number 1
Name: rprgrmr
Date: July 17, 2008 at 17:48:20 Pacific
Reply:

Here is a fine discussion of this:

http://groups.google.com/group/alt....

i.e., Google alt.msdos.batch for "delete old files."

rprgrmr


0

Response Number 2
Name: Mechanix2Go
Date: July 18, 2008 at 00:00:31 Pacific
Reply:

Nobody has managed to do it here in the last few years.


=====================================
If at first you don't succeed, you're about average.

M2


0

Response Number 3
Name: FishMonger
Date: July 18, 2008 at 00:13:03 Pacific
Reply:

You'll need to use a more appropriate language that has the capability of doing date calculations, such as Perl or Python, or VB.


0

Response Number 4
Name: ghostdog
Date: July 18, 2008 at 00:28:04 Pacific
Reply:

@OP, you can use find command from findutils for windows if you are able to install it.
See here: http://gnuwin32.sourceforge.net/pac...
it will make you life easier


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 Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch scrip to delete

Batch File To Delete Line www.computing.net/answers/programming/batch-file-to-delete-line/15539.html

Batch file to delete files in a dir www.computing.net/answers/programming/batch-file-to-delete-files-in-a-dir/14599.html

batch file to delete www.computing.net/answers/programming/batch-file-to-delete/15614.html