Friday, October 21, 2005

Cyber-D's Autodelete 2.12




This program can automagically delete files in a specific folder that are older than the specified time. It checks the file dates by modification time. You can have it run on every Windows startup to delete old temp files, backups, webcam snapshots history, temporary internet files, etc...

If you get an "Error 5:" message when autodelete runs, then you most probably are a Windows Vista user and have UAC (User Account Control) turned on. The only way to run autodelete with UAC on is by running it as an administrator. You can also right-click on the autodelete shortcut and go to the 'advanced' tab, then the 'advanced' button and activate 'run as administrator'. The program will not give an error but you will get a UAC warning every time the program runs. I have not found a way to avoid this yet, so the only advice I can give is to disable UAC by going to the controll pannel and in the search type 'disable UAC', you will be given a link to disable UAC.





54 comments:

Anonymous said...

Neat , love to have it as a service on a server !

/BNB

Anonymous said...

>> Neat , love to have it as a service on a server !

Use SRVANY.EXE from Server Resource Kit from Microsoft..

zemu2 said...

This is awesome! Hats off, great job.

Robert said...

That was the fastest turn around I have ever seen. Great job!

-Rob

Eric said...

That was quick. I really appreciate the updates. Thank you so much.

tatoosh said...

@dario:
oh cool. thanks!
please let me know (by comment) when next update is finished.
so i can put it on my german blog and, of course, use it myself ;=

HappyAndyK said...

Great utility :) Nice blog.

Carried on my site.

Dario Volaric said...

New version released!

2.02: -Can now set individual settings per folder.

tatoosh said...

thank you!!

Anonymous said...

Very nice & usefull utility. Thank You!, Wuangho.

tatoosh said...

I have a new suggestion for you Dario:

an option to set a filter for extensions:

exsample: *.mpg

or a black and whitelist like:
white: *.avi; *.jpg
black: *.mpg

so only a certain file type will be deleted ;)

greeting, tatoosh

Anonymous said...

Does it only run on Windows start up?

I don't see a 'run' button to test it, and it hasn't deleted anything from a test directory.

tatoosh said...

look in your windows start up folder.

you can also manually start it.

Dario Volaric said...

New version 2.03 released:
-Added prompt to run AutoDelete on save.
-Added file filter.
-Added shadows to icons.

coolchris said...

Hi. Sure. I am using the paramter of deleting anything older than six months. The oldest folder is february 2008 however there are files from last year.
The main folder is my downloads folder weighing in at 157GB with numerous subfolders..oldest feb2008 as said.
I will try a 3 month deletion and see if that does anything....

coolchris said...

OK, nope 3 months not working either. Possibly because its an external drive? Or because of its size?

Dario Volaric said...

Ok, so you set the folder and the options. Do you then get the error right after selecting the folder? Or after clicking "OK" in the configuration? Or after running the autodelete application itself?

coolchris said...

I get the message after running the app itself.

Dario Volaric said...

Hi, can you mail me (dariovolaric@gmail.com) the config.ini file that is located in the program's folder?

Anonymous said...

Hi... your program is great, but, its posible to add "Type of file" to delete?

for example, only delete *.tmp from the specific folder, and time.

Thanks!
Ruben

Dario Volaric said...

Hi Ruben,

Download the latest version. It has file filter masks.

Anonymous said...

I installed auto-delete but it doesnt work on my computer (actually on one of my 3 computers???). Actually, none of these developer's programs work... including the support email I send a message to that came back returned with an non-existing mailbox error! Anyway, I installed auto-delete and also Wallpaper Shifter 7 for and I only get a error that states, Program Can't Run.

I run WindowsXP SP3 32bit, without any problems of any kind. Am I maybe missing some sort of component to run your applications? When I right-click on the properties of your application's executables they seem to be Macromedia Projection Executables... maybe I am missing something... I do have the latest version of Flash installed...

Dario Volaric said...

Hi Anonymous,

The only reason I can think of why it might not work is that Macromedia Director executables create some temp files in your temp folder. If this is not allowed by your system, then the app might not work. I have added these temp files now in the installer of a new version of AutoDelete. Also the settings are now saved per user in this new version 2.04

If it still does not work, then I'm afraid I cannot help you, as I cannot replicate the error.

Anonymous said...

Thank you for your follow-up Dario. I have my temp files (and windows temp directory) on a RamDrive (X:\) for faster access. Maybe that's the problem though everything works 100% on my computer with that configuration...

Dario Volaric said...

I did notice that the app might hang if it encounters directories with unusual characters like " & , etc... I'm not sure yet what characters and how to avoid this problem. Still working on it...

Anonymous said...

Thanks, great job.
It was exactly what i was looking for.

Suggestion 1.
If you can specify in side a target folder, more then one folders that shudent be deleted or purge.

Suggestion 2.
If you can choose more then one masking/filter for a folder.
Example:
*.doc *.jpg *.gif

Best regards
Martin.M

:)

Anonymous said...

Hi! Thank you for the great program. A question: how can I delete files older then 15 hours, or 24 or 30?

Dario Volaric said...

You can add more filters by clicking on "add" next to the "filter" and adding file masks one by one. They will appear in the pulldown menu next to filters. Filtering out folders will be possible in the next version.

To delete files older than 24 hours, select "1 day" from the list. Less than 24 hours is not available.

MarkD said...

Dario,

I get an "error 5" message when I try to run. There is no config.ini file in the directory. Any ideas as to what my problem may be caused by?

Dario Volaric said...

Hi MarkD. I don't really know what Error 5 means. It does not seem to be in the list of known errorcodes: http://www.directxtras.com/DOSDocs/ErrorCodeReference.asp?UUID=2237840

The configuration file is stored as 'settings.ini' in the user's application data folder. Just look in google for "application data folder windows " followed by 'XP' or 'Vista' whatever you have.

MarkD said...

Thanks, I've got it working. The "error 5" only displays if I have checked to box to "include subfolders". It's working fine for me now, but if you're interested, my .ini file is
[globalsettings]
data=[#version: "2.05", #autostart: 1, #statuswindow: 1]
[Data_Backup]
data=[#folder: "E:\", #days: 5, #SubFolders: 0, #recycle: 1, #securedelete: 0, #filtertype: 1, #filterlist: []]
Thanks for a great utility!

Dario Volaric said...

Hi MarkD,

Tanx for the feedback. It's strange that it gives an error 5 when you enable subfolders. Does it give the error on any folder or just on that one? I know that there can be crashes with subfolders that use unusual characters in the name or folders with very long names.

Dario Volaric said...

Version 2.06 is out!

-Added colored seperators of sections in configuration.
-Added subfolder filtering masks ability.
-Added last deleted file name in status window.
-Added logging of deleted files.

Dario Volaric said...

Version 2.07 released!

-Fixed "Error 5" bug. (tanx Mark!)

Anonymous said...

Wonderful Utility. I was wondering if it were possible to add a feature to allow this application to read the "accessed" date alternatively to modified.

Thanks!

Dario Volaric said...

Ability to use accessed (and created) date rather than modified is coming in new version 2.08 along with another interfacelift for the configuration application. This program keeps growing and growing :)

Dario Volaric said...

Version 2.08 released!

-New interface for configuration.
-When adding a folder, highest folder name is sugested as title.
-Folder titles and paths con now be edited.
-Autodelete now shows total progress instead of progress per folder.
-File age can be anything between 1 day up to 3650 days.
-Folder list overview now contains folder path.
-Delete empty subfolders option added.
-Added tooltips.
-Changed log filenames to more readable type.
-Added internal log file viewer.
-Added donate button.

Dario Volaric said...

Version 2.09 released:
-Fixed naming of logfiles.
-Fixed sorting of logfiles in log overview.
-Removed showing of full path of deleted file in autodelete status window.

Dario Volaric said...

Version 2.10 released

-Fixed not showing what file was currently being deleted
-Made status window dragable and remembering it's last position

Anonymous said...

2.09 exe is corrupt.
Can't find 2.10

Dario Volaric said...

Sorry for the bad download. Should work now :)

Jack Chrysler said...

http://krojamsoft.com/filecleaner.php

Anonymous said...

Can we use a batch file as a scheduled task that will run Autodelete once a day? If so, what is an example of the command(s) that should be used.

Dario Volaric said...

You can use windows task scheduler to start autodelete.exe Just search in google for "Schedule Task" followed by "XP or Vista"

Anonymous said...

It has bug !!
The filter do not work .. it delete all my files.

I had backup files name " debugxxxxx.log" and other file in the folder

I put filter [ debug*.* ] to delete only the file start with debugxxx.x but it delete all other the files in the folder.

Dario Volaric said...

Version 2.11 released.

-Fixed serious files filter bug
-Added auto update check feature (checks every 7 days for new version)

Dario Volaric said...

Version 2.12 released:

-Tray icon is shown if no status window is to be shown

Anonymous said...

Any reason why CPU utilization is 50% or better while in config module? IT department didn't like it that if this were to run on a server so much resources. Thanks.

Dario Volaric said...

The reason why the CPU was at 50% in config mode was that the application was made in Macromedia Director. The configuration module uses built-in flash components for the lists and buttons. It is these components that make use of the flash player to be visible inside the configuration application. However, the autodelete application itself does not use any flash components. Using it as a scheduled task is what I would recommend rather than a service, for it does not 'run constantly in the background'. It has a run-clean-close policy, thus only using the CPU for the actual task and then staying out of the way until you (or the task scheduler) runs it again.

Anonymous said...

A nice feature to add would be to delete al files by date except for a certain number. We have a few apps at my job where the user wants to delete all of the files except for the last 5. Doing it alone by date might allow for more files. Right now I have a VBScript doing this but it would be a nice feature to add. Just a suggestion.

Anonymous said...

it could be useful if i can delete files automatically every hour on my slave Hard Disk when it is full...
I have to store video file from my Security cameras... if it can clean space when HD is full (or reacha quota) i can store only the last .avi files..

Dario Volaric said...

Hi Anonymous,

You can try "Cam Wizard" (http://www.softpedia.com/get/Internet/WebCam/Cam-Wizard.shtml) for recording security cam video's. It's perfect for that purpose.

BBrol said...

FYI. I've managed to run this great tool as a service. This runs even no user is logged on. These are the steps:
1) Install the program Cyber-D Autodelete http://cyber-d.blogspot.com/ ==> http://cyber-d.blogspot.com/2005/10/cyber-ds-auto-delete-101.html
1) Configure AutoDelete
2) Follow instructions as in KB137890 ( http://support.microsoft.com/kb/137890 )
3) Copy "C:\Documents and Settings\YOUR USER\Application Data\Cyber-D's AutoDelete" to "C:\Documents and Settings\Default User\Application Data\Cyber-D's AutoDelete" (YOUR USER = user you've configured the tool with)
4) Start the service

Wspec said...

This is a great tool the only need that I had that wasn't directly supported by the config.exe, was to specify a network path to clean. I was able to manually edit the settings.ini file, and it successfully cleaned it but this seems a bit of an unnecessary work around.

Brian W.