georgeminton
03-03-04, 05:03 PM
I am researching a method to delete files based on date the file was last accessed in a specific folder.
This is what I am trying to do. I have a Outlook Web Access server that
has some temp files in it. Some of the files are in use. I want to create a script that will check the file for the last time it was accessed. If the file is over 24 hours old I want to delete the files that meet this criteria. I found several sample scripts that can do part of the task but I don't know how to tie them together to make cohesive script that will check the files age, if the files is 24 hours old delete it, skip to each successive file and perform the same task. I suppose I am looking at some type of some type of looping procedure that will do this.
Does anyone have any ideas on how to do this ? Any help would be appreciated. I have added sample scripts that I have collected that do parts of thess task but not all.
Thanks,
George Minton
This is what I am trying to do. I have a Outlook Web Access server that
has some temp files in it. Some of the files are in use. I want to create a script that will check the file for the last time it was accessed. If the file is over 24 hours old I want to delete the files that meet this criteria. I found several sample scripts that can do part of the task but I don't know how to tie them together to make cohesive script that will check the files age, if the files is 24 hours old delete it, skip to each successive file and perform the same task. I suppose I am looking at some type of some type of looping procedure that will do this.
Does anyone have any ideas on how to do this ? Any help would be appreciated. I have added sample scripts that I have collected that do parts of thess task but not all.
Thanks,
George Minton