Timer Delete Files After Inactivity

General technological topics without their own forum go here

Timer Delete Files After Inactivity

Post by cyber-maniac on Mon Dec 03, 2012 4:32 pm
([msg=71508]see Timer Delete Files After Inactivity[/msg])

I've been trying to find a way to delete several files or even an entire folder after a certain length of time, but I want this to cancel or (preferably) restart the timer when I access the folder. I know I can use the task scheduler to delete at certain times If i use a simple batch program, but would anyone know how I could achieve what I want, and use a program such as eraser to remove the files/folder.

Any help would be much appreciated.

Thank You :)
cyber-maniac
Poster
Poster
 
Posts: 113
Joined: Tue Feb 22, 2011 7:13 am
Blog: View Blog (0)


Re: Timer Delete Files After Inactivity

Post by 0phidian on Mon Dec 03, 2012 5:05 pm
([msg=71513]see Re: Timer Delete Files After Inactivity[/msg])

Maybe if you could have your script access your file-managers list of recently used items you could use that to tell if a folder had been accessed.
User avatar
0phidian
Poster
Poster
 
Posts: 242
Joined: Sat Jun 16, 2012 7:04 pm
Blog: View Blog (0)


Re: Timer Delete Files After Inactivity

Post by WallShadow on Mon Dec 03, 2012 5:18 pm
([msg=71515]see Re: Timer Delete Files After Inactivity[/msg])

Hmm, if your looking for a script on how to do this; look into this: www.ss64.com/nt/syntax-delolder.html
User avatar
WallShadow
Contributor
Contributor
 
Posts: 594
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)


Re: Timer Delete Files After Inactivity

Post by cyber-maniac on Tue Dec 04, 2012 5:11 am
([msg=71521]see Re: Timer Delete Files After Inactivity[/msg])

WallShadow wrote:Hmm, if your looking for a script on how to do this; look into this: http://www.ss64.com/nt/syntax-delolder.html

I looked into this too. it's close to what i want, but not 100% there.

Either a script or even a program, essentially this is what I would preferably like it to do:

1. I create the task to target a specific folder/files
2. The task is created to delete the folder/file if i don't use it for a certain amount of time.
3. The folder/files become inactive and the folder/files are deleted (preferably with a 3rd party software such as eraser)
4. In the event that I access the folder, the task is restarted and the timer reset.
5. If the PC is turned of the timer still ticks down on the task.


Any ideas?
cyber-maniac
Poster
Poster
 
Posts: 113
Joined: Tue Feb 22, 2011 7:13 am
Blog: View Blog (0)



Return to General

Who is online

Users browsing this forum: No registered users and 0 guests