Topic: Deleting temp files automatically (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=31088" title="Pages that link to Topic: Deleting temp files automatically (Page 1 of 1)" rel="nofollow" >Topic: Deleting temp files automatically <span class="small">(Page 1 of 1)</span>\

 
Astralis
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jun 2009

posted posted 06-30-2009 11:53

Hey, I am running a windows server and I would like some pointers to what is the easiest solution for automating deletion of temp files.

I am thinking of using a batch file which runs everyday at some point and clearing all the files in a temp folder older than, lets say 1 day.

but since I am a total noob in batch scripting I would like some tips if there are other ways to go about this.. or if you could point me in the direction I should be heading with this.

thanks.

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 06-30-2009 12:28

Your assumption is flawed,
temp files should be deleted by the application that created them once it's done with them.
If they ain't find out why, fix the app, etc.
Symptom fiddling will only get you so far.


(del /? is your friend)

Astralis
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jun 2009

posted posted 06-30-2009 12:49

Thank you for the fast answer.

However I would like to rephrase myself. I was wrong to say they are temp files in the fashion that they are just needed for a breif period. I need to keep them for an extended period of time for safety reasons. but then delete them after a certain time.

I apologize for my terrible explanation, english is not my first language and I feel like I am confusing myself already. Hope you can understand what I mean.

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 06-30-2009 14:17

then you need more than just a deletion of 'all temp files that can be deleted'.
You'll to do some shell scripting, and I'd say 'monad' (formerly called the 'windows power shell', or was it the other way around)
would be the appropriate way to do this on a windows server.

Of course you could also install your favourite scripting language, like python or perl .

(This is doable in just plain old bat files. But it's also a pain.)

So long,

->Tyberius Prime



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu