OLE╫╘╢»╗»╝╝╩⌡╓┤╨╨▓╬╩²

▒╛╥│─┐╟░╓╗╙╨╙ó╬─░µ

Below is the list of methods that SafeClean exports. You can use e.g. Visual Basic or VBScript to call the methods and control SafeClean.


Methods

boolean LoadJobIni(BSTR lpcsJobPath)

Call LoadJobIni(...) to load an exist job ini file from the harddrive. lpcsJobPath is the full path to the job ini file. Return true if successful, return false when not. 

Note: If this function is not called. Then the default ini file is loaded

void EnableDiskClean(BOOL bEnable)
void EnableTrackClean(BOOL bEnable)
void EnableProgramClean(BOOL bEnable)
void EnableShortcutClean(BOOL bEnable)

Enable or disable scanners. Note: Call this after the LoadJobIni(...), otherwise the setting will be removed.

void SetDefaultAction(short nAction)

Set the default action. nAction must be one of following:

Value Meaning
0 Delete only
1 ZIP and delete
2 Move to a folder
4 Send to the Recycle Bin

void SetDefaultTarget(BSTR strTarget)

Set the default target folder or file. strTarget may be:

Value Note
A valid path to a folder  Used when action is Move
A valid path to a ZIP file Used when action is ZIP and delete
"Default" Move or ZIP to default folder
"" Only when action is Delete Only or Recycle

void AddScanAll()

Add all local harddrives into the scan list.

void AddScanPath(BSTR lpcsPath)

Add a drive or a folder into the scan list. lpcsPath is the path to the folder or drive. 

void ResetScanList()

Remove all drives and folders in the scan list.

void EnableAutoClean(BOOL bAuto)

Set to true if you want to automatically clean the files/items without prompting and asking the user.

boolean StartJob()

Call this methods to let SafeClean start running the active job. Return true if successful, return false when not.

Please note that the you need to define the job to run before calling the method, otherwise you need to load a job ini file.


╧α╣╪┴¼╜╙