Issue

Sometimes you might need to count the number of items in a specific folder within a PST file or total the amount of items within a PST file; for example, if you want to count number of items within a PST file after the repair process without extracting the particular PST file again (to compare the current number of items with the number of items before repairing).

Solution 

PST Folder Counter is a command line tool used to count items in folders within a PST file. The tool supports 3 libraries for counting of the items within the folders:

  1. MAPI
  2. ASPOSE
  3. Independent Soft

PST Folder Counter counts the items on the header level (from MAPI table); it doesn’t enumerate the items physically inside the folders. The ASPOSE library seems to be the faster one in this counting.
You can get the tool on this location.
The tool supports these main switches:

display-basic Display basic information about PST file: Item and folder count
display-extended
Display extended information: List of folders and item count

List of the next supported switches:

-f –file Required. Location of the pst file
-a  –aspose (Default: False) Use aspose instead of mapi
-i –independentsoft (Default: False) Use Independentsoft.PST instead of mapi

Some examples of the correct syntax:
MAPI
D:\PSTFolderCounter>PSTFolderCounter.exe display-basic -f “D:\PST\My_PstFile.pst”
D:\PSTFolderCounter>PSTFolderCounter.exe display-extended -f “D:\PST\My_PstFile.pst”
ASPOSE
D:\PSTFolderCounter>PSTFolderCounter.exe display-basic -f “D:\PST\My_PstFile.pst” -a
D:\PSTFolderCounter>PSTFolderCounter.exe display-extended -f “D:\PST\My_PstFile.pst” -a
Independent Soft
D:\PSTFolderCounter>PSTFolderCounter.exe display-basic -f “D:\PST\My_PstFile.pst” -i
D:\PSTFolderCounter>PSTFolderCounter.exe display-extended -f “D:\PST\My_PstFile.pst” -i

Print Friendly, PDF & Email