...

View Full Version : Search and delete old files



paulvarjak
05-26-2005, 11:12 AM
Hi all!

I'm new (totally new) in JS programming. What I want to do I think is so simple, it's just a small script for searching in a directory structure (eg: C:\TEMP and subfolders) for files older than X days and delete them making a list of what is deleted.

Does anyone have a similar script or can give me some guidelines of which functions can I use?

Thanks in advance.

_Aerospace_Eng_
05-26-2005, 11:30 AM
Hmm, this sounds kinda fishy to me. I don't think I would want you looking at my folders. So why don't you tell us why you REALLY want to do this? Spyware? Besides PHP would be better for this, it would search folders on the server.

paulvarjak
05-26-2005, 11:58 AM
It's not spyware, I just want to clean network filesystems by deleting files that are not being used for X days. That's all.

jbot
05-26-2005, 12:00 PM
It's not spyware, I just want to clean network filesystems by deleting files that are not being used for X days.

then you should refer to your Network Administrators' Manual or SDK. they'll be examples in there, no doubt.

Eternity Angel
05-26-2005, 07:01 PM
And beyond sounding fishy, you cannot do this with JS.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum