How to create program document for compact mail all database.nsf?

Hi all

I am beginner.

How to create program document for compact mail all database.nsf ?

Subject: How to create program document for compact mail all database.nsf ?

Hi, Chris,

You could create an program for compacting databases.

Name of program: Compact

Commandline: compact mail -s 10

Schedule: whatever

Means that the compacter compact only the mail folder and databases which have a white space of 10%. You also could specify only the -mail option which compact all mail databases.

Subject: How to create program document for compact mail all database.nsf ?

You could use the NotesSession.SendConsoleCommand with the proper command.

Have a look at the Administrator’s Help about the parameters to use for compating your mail-file.

If you want to compact more databases you might have a look at the NotesDbDirectory class.