Automation Information

SafeClean Utilities provide three features to automate the cleaning process.


Command line

You can add command line parameters when running SafeClean Utilities. E.g.

C:\path_to_the_program\safecln.exe /auto

The command line above will scan all local hard drives without asking the user and prompt for action after the scanning.

A complete list of command line parameters is available here

OLE Automation

SafeClean Utilities support now OLE Automation. You can control the program from any OLE Automation enabled programming tools. E.g. Visual C++ and VBScript.

You can find Object Description Language file (safecln.odl) and a sample for Windows Scripting Host (sc3script.wsf) in the MISC folder. Launching SafeClean Utilities is something like:

Set SafeCln=CreateObject("SafeClean.Application")
afeCln.EnableDiskClean(TRUE)
SafeCln.EnableTrackClean(TRUE)
SafeCln.EnableProgramClean(FALSE)
SafeCln.SetDefaultAction(1)
SafeCln.SetDefaultTarget("Default")
SafeCln.AddScanAll()
SafeCln.StartJob()

Shell Integration

SafeClean Utilities is now integrated with the Windows Explorer. You can right click at any folder and choose "Clean with SafeClean". You can also add customized scan rules into the shell. You can do it in Options->Shell Integration.


Related links