View Full Version : automating file deletion
simhasriram
March 19th 08, 09:16 AM
Can a file or folder be deleted after a certain period say 7 days?
Brian A.
March 19th 08, 12:05 PM
"simhasriram" > wrote in message
...
> 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
Ken Blake, MVP
March 19th 08, 07:16 PM
On Wed, 19 Mar 2008 02:16:02 -0700, simhasriram
> wrote:
> 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.
--
Ken Blake, Microsoft MVP - Windows Desktop Experience
Please Reply to the Newsgroup
Ken Blake, MVP
March 19th 08, 07:38 PM
On Wed, 19 Mar 2008 12:16:22 -0700, "Ken Blake, MVP"
> wrote:
> On Wed, 19 Mar 2008 02:16:02 -0700, simhasriram
> > wrote:
>
> > 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.
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, Microsoft MVP - Windows Desktop Experience
Please Reply to the Newsgroup
Brian A.
March 19th 08, 08:58 PM
"Ken Blake, MVP" > wrote in message
...
> On Wed, 19 Mar 2008 12:16:22 -0700, "Ken Blake, MVP"
> > wrote:
>
>> On Wed, 19 Mar 2008 02:16:02 -0700, simhasriram
>> > wrote:
>>
>> > 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.
>
>
> 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, Microsoft MVP - Windows Desktop Experience
> Please Reply to the Newsgroup
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
jim
March 20th 08, 07:29 AM
"simhasriram" wrote:
> 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.
M.I.5¾
March 20th 08, 01:19 PM
"simhasriram" > wrote in message
...
> 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.
simhasriram
March 20th 08, 01:51 PM
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.
"M.I.5¾" wrote:
>
> "simhasriram" > wrote in message
> ...
> > 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.
>
>
>
vBulletin® v3.6.4, Copyright ©2000-2024, Jelsoft Enterprises Ltd.