Knowledge Base

TreeSize



Question / Problem

I'm trying to create a report of two separate drives by using the command line options of TreeSize:

"C:\Program Files (x86)\JAM Software\TreeSize Professional\TreeSize.exe" /EXPAND 1 /GROUPSCANS /EXCEL "myreport.xlsx" "C:\" "D:\"

The Excel file only includes the search locations "C:\" and "D:\" and not the designated 1 level expansion.

Answer / Solution

If you use the /GROUPSCANS switch, TreeSize combines your scan paths into a virtual root folder which is referred to as expand level 0. Following this, /EXPAND 0 will only show the virtual folder. 

/EXPAND 1 will show the virtual folder plus the given scan paths (M:\_PROJECTS" "R:\_PROJECTS in your case)
/EXPAND 2 will show the virtual folder plus the given scan paths plus their first level of files and folders. 

In order to expand the first level of each defined scan path you will need to use "/EXPAND 2".