### WizTree Wait Command Example (Windows 64-bit) Source: https://www.diskanalyzer.com/guide This example demonstrates using 'start /wait' with wiztree64.exe in a batch file for 64-bit Windows. This command ensures sequential execution by waiting for the WizTree export to finish. ```batch start /wait wiztree64.exe "D:" /export="f:\export\testfiles.csv" /filter="test" ``` -------------------------------- ### WizTree Wait Command Example (Windows 32-bit) Source: https://www.diskanalyzer.com/guide This example shows how to use 'start /wait' with wiztree.exe in a batch file for 32-bit Windows. This ensures that the script waits for the WizTree export process to complete before proceeding. ```batch start /wait wiztree.exe "D:" /export="f:\export\testfiles.csv" /filter="test" ``` -------------------------------- ### WizTree Installer Command-Line Parameters Source: https://www.diskanalyzer.com/download Demonstrates how to perform a silent installation of WizTree with custom configurations using command-line parameters. This is useful for enterprise users performing automated installs. ```shell wiztree_4_14_setup.exe /DIR="C:\WizTreeApp" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /MERGETASKS=!desktopicon /runasadmin=false /checkforupdates=false /supportercode=xxxx-xxxx-xxxx ``` -------------------------------- ### WizTree Installer Command Line Parameters Source: https://www.diskanalyzer.com/download Provides optional command-line parameters for the WizTree installer. These allow for setting the supporter code, configuring the 'always run as admin' setting, and controlling the 'check for updates' behavior during installation. ```bash wiztree_x_xx_setup.exe /supportercode=1234-5678-abcd-1234 /runasadmin=false /checkforupdates=false ``` -------------------------------- ### WizTree Basic Export Example (Command Prompt) Source: https://www.diskanalyzer.com/guide This example demonstrates exporting all files and folders from the C: drive to a CSV file, running WizTree with administrator privileges to enable MFT scanning. The output filename includes date and time. ```command-line wiztree64.exe "C:" /export="c:\temp\export%d_%t.csv" /admin=1 ``` -------------------------------- ### WizTree Basic Export Example (Batch File) Source: https://www.diskanalyzer.com/guide This example shows how to export all files and folders from the C: drive to a CSV file within a batch script. It uses double percent signs for date and time variables, and runs with administrator privileges. ```batch wiztree64.exe "C:" /export="c:\temp\export%%d_%%t.csv" /admin=1 ``` -------------------------------- ### WizTree Regular Expression Search Example Source: https://www.diskanalyzer.com/download Illustrates how to use regular expressions for file searching and filtering in WizTree. It shows examples for basic regex and regex with spaces, requiring double quotes. ```regex /[0-9]{4}-[0-9]{2}-[0-9]\.csv$ ``` ```regex "[0-9]{4} [0-9]{2} [0-9]\.csv$" ``` -------------------------------- ### WizTree Filtered Export Example (Command Prompt) Source: https://www.diskanalyzer.com/guide This command exports only *.mp3 and *.wav files from C:\Users to a CSV file, excluding folders, and runs in non-administrator mode. The output filename includes date and time. ```command-line wiztree64.exe "C:\Users" /export="c:\temp\audiofiles%d_%t.csv" /filter="*.mp3|*.wav" /admin=0 /exportfolders=0 ``` -------------------------------- ### WizTree Treemap Image Export Example (Command Prompt) Source: https://www.diskanalyzer.com/guide This command exports the C: drive to a PNG image file with specific dimensions (1024x768). It displays allocated space and does not include free space in the treemap visualization. ```command-line WizTree64.exe C: /treemapimagefile="C:\temp\cdriveimage_%d.png" /treemapimagewidth=1024 /treemapimageheight=768 /treemapimagefreespace=0 /treemapimageshowallocated=1 ``` -------------------------------- ### WizTree Filter and Exclude Example Source: https://www.diskanalyzer.com/guide This command exports files and folders containing the word 'test' from the D: drive to a specified CSV file, while excluding the D:\Temp folder. It demonstrates the use of both /filter and /filterexclude parameters. ```command-line wiztree64.exe "D:" /export="f:\export\testfiles.csv" /filter="test" /filterexclude="d:\temp\" ``` -------------------------------- ### WizTree Filtered Export Example (Batch File) Source: https://www.diskanalyzer.com/guide This batch script exports specific audio file types (*.mp3, *.wav) from C:\Users, excluding folders, and runs without administrator privileges. It uses double percent signs for date and time in the output filename. ```batch wiztree64.exe "C:\Users" /export="c:\temp\audiofiles%%d_%%t.csv" /filter="*.mp3|*.wav" /admin=0 /exportfolders=0 ``` -------------------------------- ### WizTree Treemap Image Export Example (Batch File) Source: https://www.diskanalyzer.com/guide This batch script generates a treemap image of the C: drive with custom dimensions (1024x768). It shows allocated space and excludes free space, using double percent signs for date variables in the filename. ```batch WizTree64.exe C: /treemapimagefile="C:\temp\cdriveimage_%%d.png" /treemapimagewidth=1024 /treemapimageheight=768 /treemapimagefreespace=0 /treemapimageshowallocated=1 ``` -------------------------------- ### Command Line CSV Export for 32-bit Windows Source: https://www.diskanalyzer.com/guide This command exports file data from a specified drive or folder to a CSV file using the 32-bit WizTree executable. It supports various optional parameters for filtering, sorting, and controlling the export content. Ensure WizTree 3.18 or later is installed. ```bash wiztree.exe "drive/folder" /export="filename" [/filter="filespec"] [/filterexclude="filespec"] [/filterfullpath=0|1] [/admin=0|1] [/exportfolders=0|1] [/exportfiles=0|1] [/sortby=sortoption] [/exportmftrecno=0|1] [/exportUTCTime=0|1] ``` -------------------------------- ### Dump MFT to File via Command Line Source: https://www.diskanalyzer.com/whats-new Allows dumping the Master File Table (MFT) to a file using the command line. Supports date and time placeholders in the filename for organized backups. Requires WizTree version 3.22 or newer for full functionality, especially when loading previously saved MFT files. ```bash WizTree.exe drive /dumpmftfile=filename # Example with date and time placeholders: WizTree C: /dumpmftfile="d:\dumps\cdrive%d%t.mft" ``` -------------------------------- ### Advanced File Search Filter with Wildcards Source: https://www.diskanalyzer.com/whats-new The file search filter now supports multiple filters and wildcards, separated by the pipe symbol (|). This allows for more flexible and specific file searches. For example, to search for MP3, OGG, and WAV files, use '*.mp3|*.ogg|*.wav'. ```bash File Search Filter: *.mp3|*.ogg|*.wav ``` -------------------------------- ### WizTree Combined CSV and Image Export (Command Prompt) Source: https://www.diskanalyzer.com/guide This command exports both CSV data and a treemap image of the C: drive. It specifies output filenames with date/time, custom image dimensions, and includes allocated space while excluding free space. ```command-line WizTree64.exe C: /export="C:\temp\cdrive_%d_%t.csv" /treemapimagefile="C:\temp\cdrive_%d_%t.png" /treemapimagewidth=1024 /treemapimageheight=768 /treemapimagefreespace=0 /treemapimageshowallocated=1 ``` -------------------------------- ### Command Line CSV Export for 64-bit Windows Source: https://www.diskanalyzer.com/guide This command exports file data from a specified drive or folder to a CSV file using the 64-bit WizTree executable. It supports the same comprehensive set of optional parameters as the 32-bit version for filtering, sorting, and customizing the export. Requires WizTree 3.18 or later. ```bash wiztree64.exe "drive/folder" /export="filename" [/filter="filespec"] [/filterexclude="filespec"] [/filterfullpath=0|1] [/admin=0|1] [/exportfolders=0|1] [/exportfiles=0|1] [/sortby=sortoption] [/exportmftrecno=0|1] [/exportUTCTime=0|1] ``` -------------------------------- ### WizTree Command-Line Sorting Options Source: https://www.diskanalyzer.com/download Details the command-line parameter '/sortby' for setting the default sorting order in WizTree. It lists the numerical options corresponding to different sorting criteria. ```shell /sortby=1 ``` ```shell /sortby=2 ``` ```shell /sortby=3 ``` -------------------------------- ### WizTree Command-Line Filter Path Setting Source: https://www.diskanalyzer.com/download Demonstrates how to control whether WizTree filters are applied to the full path or just the file name using the '/filterfullpath' command-line parameter. The default is to apply to the full path. ```shell WizTree64.exe /filterfullpath=0 ``` -------------------------------- ### WizTree Command Line Filter with Wildcard Workaround Source: https://www.diskanalyzer.com/whats-new Shows a previous workaround for handling paths with spaces in WizTree command-line filters by replacing spaces with wildcard question marks. This method is less precise than using literal double quotes. ```bash WizTree64.exe /filter="C:\Program?Files\|C:\Program?Files?(x86)\" ``` -------------------------------- ### WizTree Export File Types with Exclusion (Command Prompt) Source: https://www.diskanalyzer.com/guide This command exports all file types from the C: drive to a CSV, excluding the C:\temp folder, and runs with administrator privileges. The output filename includes date and time. ```command-line wiztree64.exe "C:" /exportfiletypes="c:\temp\exportfiletypes%d_%t.csv" /admin=1 /filterexclude="c:\temp\" ``` -------------------------------- ### WizTree Treemap Image Export Options Source: https://www.diskanalyzer.com/guide These parameters control the generation of treemap images. Options include setting the output filename, image dimensions, and whether to display free space or use allocated space. ```command-line /treemapimagefile= - Sets the output image file name. Use %d and %t for date/time. /treemapimagewidth= - Sets the image width (default 1920). /treemapimageheight= - Sets the image height (default 1080). /treemapimagegray=0|1 - Exports image in grayscale (0=no, 1=yes). /treemapimagefreespace=0|1 - Shows free space on the treemap (0=no, 1=yes, default). /treemapimageshowallocated=0|1 - Shows allocated space instead of file size (0=file size, 1=allocated size, default). ``` -------------------------------- ### Using Date and Time in Export Filenames Source: https://www.diskanalyzer.com/guide Demonstrates how to dynamically include the current date and time in the exported CSV filename using format specifiers. For batch files, percent signs must be doubled. This feature requires WizTree 3.18 or later. ```bash # Direct command prompt usage: wiztree64.exe C:\ /export="backup_%%d_%%t.csv" # In a batch file (.bat/.cmd): wiztree64.exe C:\ /export="backup_%%d_%%t.csv" ``` -------------------------------- ### Controlling Export Content (Folders/Files) Source: https://www.diskanalyzer.com/guide Shows how to selectively export only folders or only files by using the '/exportfolders' and '/exportfiles' parameters. Setting these to '0' disables the respective export. This functionality is available in WizTree 3.18 and later. ```bash # Export only files, disable folder export WizTree64.exe C:\ /export=files_only.csv /exportfolders=0 # Export only folders, disable file export WizTree64.exe C:\ /export=folders_only.csv /exportfiles=0 ```