automating file deletion

  • Thread starter Thread starter simhasriram
  • Start date Start date
simhasriram said:
Can a file or folder be deleted after a certain period say 7 days?

Do you have a specific file or folder in mind you would like to let us know about?
Just about any file/folder can be deleted immediately after it's created, just make
sure it's not a system file/folder or you will have big problems.

--


Brian A. Sesko { MS MVP_Windows Desktop User Experience }
Conflicts start where information lacks.
http://basconotw.mvps.org/

Suggested posting do's/don'ts: http://www.dts-l.org/goodpost.htm
How to ask a question: http://support.microsoft.com/kb/555375
 
Can a file or folder be deleted after a certain period say 7 days?



Sorry, I don't understand. Can you clarify your question?

In general, any file or folder can be deleted any time you want to.
 
Sorry, I don't understand. Can you clarify your question?

In general, any file or folder can be deleted any time you want to.


Thinking about this some more, are you asking whether you can schedule
a deletion to take place some number of days in the future?

If so, why? Exactly what do you want to accomplish?
 
Ken Blake said:
Thinking about this some more, are you asking whether you can schedule
a deletion to take place some number of days in the future?

If so, why? Exactly what do you want to accomplish?

It appears the OP wants to delete a file using a batch file or similar.

--


Brian A. Sesko { MS MVP_Windows Desktop User Experience }
Conflicts start where information lacks.
http://basconotw.mvps.org/

Suggested posting do's/don'ts: http://www.dts-l.org/goodpost.htm
How to ask a question: http://support.microsoft.com/kb/555375
 
simhasriram said:
Can a file or folder be deleted after a certain period say 7 days?

yes i use a batch file FolderCleaner.vbs
'*
'* This script will delete all files older than a specified number of days
'* from the specified folder.
'*
'* It accepts no arguments and outputs a logfile C:\ReportCleaner.log
'*
'* Created 29 September 2003 by Chris Bennell

you can find it in the scripts library.
 
simhasriram said:
Can a file or folder be deleted after a certain period say 7 days?

A file or folder can be deleted mere milliseconds after its creation.

I suspect that you have a specific circumstance in mind, but as my crystal
ball is away for an upgrade, you will have to provide us with a clue or two
the old fashioned way.
 
specific details are that i have a folder in the d drive and it is a shared
folder which is used by my collegues to move data in our lan, but as the disc
space is almost full and i thought if i can impose a policy as to delete
files and folders created/modified after 7 clear days and move to it another
hard disk( which i plan to install in the machine)from where it shall be
deleted after 7 to 15 days. Thanks a ton for the response to all.
 
Back
Top