Setting Up Daily Maintenance Tasks

The Notes Gateway has the capability of running any maintenance commands you invoke. To take advantage of this capability, you must create a batch file called gwmaint.bat and include your Windows maintenance commands in it. Each day at midnight, the gateway will execute the commands in the gwmaint.bat file.

  1. Use a text editor to open the gwmaint.bat file in the domain\wpgate\notes directory.

  2. Specify the maintenance commands you want. You can include as many commands as necessary.

    For example, the file could include the following line to delete any message files that are undeliverable or damaged.

    del j:\connector\wpgate\notes\gwprob\*.bad (queue in the domain directory)

    or

    del c:\lngate\wpgate\notes\gwprob\*.bad (queue on the local machine)

  3. Save the file in the domain\wpgate\notes directory.