generate/cbs2.gif System Repair Hook (R-REPAIR.MAC) generate/en711.gif


 

The script should be located in your CAPITAL program directory and must have the file name R-REPAIR.MAC.

This hook script can be used to execute further custom maintenance tasks after an automatic repair or database maintenance is performed.

Entry Values

Mode --> Contains 0 if a database maintenance is being performed, otherwise 1 if an automatic repair is being performed.

Action --> Contains the path of the company directory being cleaned or repaired.

generate/notepad2.gifThis hook is called for each company that the repair or maintenance/clean operation is being performed for.

Return Values

None.

Example

* Execute a customise operation

If Mode = 0

   Shell("MyCustomApp", "/Repair: " + Action)

Else

   Shell("MyCustomApp", "/Clean: " + Action)

Endif

____________________________

Related Topics:

Scripting Hooks

Script Programming

 



Help Topic Map