This command-line utility is used to compact your Lotus Notes workspace (desktopN.ndk).

See the Compact Workspace page for a similar Notes client based utility.

Donate Download CompactDesktop v2.2 (Size 88 KiB) Freeware


R6, R7



Extract the CompactDesktop.exe into your Lotus Notes program directory where Notes.exe is located.
Run the program from Lotus Notes program directory.


A command-line switch allows you to compact a desktop file with an alternate file name to desktop6.ndk

Usage: CompactDesktop [desktop file] [desktop file] 
       Default file is desktop6.ndk if unspecified.

By default, the program will use desktop6.ndk if no parameter is supplied.

The utility backs up your current desktop file to desktopN.ndk_YYYY-MM-DD_HH.MM.SS.bak before the compaction takes place. Please ensure you have enough free disk space for the backup file.


This utility is only recommended where the desktop file has grown to a very large size and compaction using the Lotus Notes client does not seem to do much to reduce the size. Please use this utility sparingly.

It is important to note that this utility does not detect or repair existing errors in your desktop file. It merely performs a compact. As such, using this utility on an already corrupt desktop file will most probably render the desktop file unusable. We suggest that you first compact the desktop using the Lotus Notes client before using this utility.

Please note that all your personal views and folders will be removed by this utility.

After you run CompactDesktop.exe and run Notes you may see something like the following in your Notes task bar..

This is the result of not copying special note IDs (ExtraInfo) in the desktop file and is to be expected. Your Notes workspace will still function provided that it was not previously corrupt, however, it is suggested that you also compact the Workspace from the Notes client as well after running this utility.

To restore your old desktop file, delete the recently compacted desktopN.ndk file and rename the backup file usually called desktopN.ndk_YYYY-MM-DD_HH.MM.SS.bak to desktopN.ndk

Return codes: 0 = Success, 1 = Failed

Change History: