[Den hΣr sidan finns bara pσ engelska]
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.
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
Enable or disable scanners. Note: Call this after the LoadJobIni(...), otherwise the setting will be removed.
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 |
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 |
Add all local harddrives into the scan list.
Add a drive or a folder into the scan list. lpcsPath is the path to the folder or drive.
Remove all drives and folders in the scan list.
Set to true if you want to automatically clean the files/items without prompting and asking the user.
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.