The details you provide will be handled in accordance with our stated Privacy Policy.
This article details the command line arguments or switches used by FileWatcher.
Command line arguments used by FileWatcher are separate into two groups. The first argument defines what operation FileWatcher should perform - create inventory, compare inventory or load a job file. All subsequent arguments are used to specify values that may be used for an operation.
For example, the command FileWatcher /N /IF "C:\MyFolder" /IS "C:\MyInventories" contains 3 arguments:
Please note: command line switches are case insensitive.
The first command line argument defines the operation or action to be performed by FileWatcher.
/N
or
/NewInventory
Create a new inventory.
Example: FileWatcher /N /IF "C:\MyFolder" /IS "C:\MyInventories"
/C
/Compare
Compares an existing inventory against a folder.
/J
/Job
Load inventory jobs from an XML file.
Example: FileWatcher /J /JobFile "C:\MyJobs.xml"
All other command line arguments are used to specify values required for individual FileWatcher actions.
/CF
/CompareFolder
Specifies at target folder to used in an inventory comparison
For example /CF "C:\MyFolder"
/CI
/CompareInventory
Specifies the filepath to an existing inventory file.
Only used in comparison operations.
For example: /CI "C:\MyInventories\Inventory001.xml"
/CL
/CompareLog
Used to specify a specific filename and path for the comparison log. If not specified, the log file will be saved the current path with an automatically generated filename based on the current date and time.
For example /CL "D:\CompareResult.log"
This argument supports the keyword '$datetime$' to automatically insert the current date and time in the filename. For example, /CL ""D:\CompareLog-$datetime$.log"" will become /CL D:\CompareLog-18-Jan-2019_160712.log
To disable log output, use the value NO_LOG, for example /CL NO_LOG
/EFE
/ExcludedFileExtensions
An optional list - in comma separate values (CSV) format - specifying any file extensions to be excluded from an inventory or comparison.
For example: /EFE "bmp,txt,xls"
/EP
/ExcludedPaths
An optional list - in comma separated values (CSV) format - specifying and paths (file or folders) that are to be excluded from an inventory or comparison.
If including paths containing whitespace or names longer than 8 characters, then enclose within quotation marks.
Example: /EP "C:\TestFolder,C:\Folder2\myfile.doc"
/IF
/InventoryFolder
Specify the path to a folder to be inventoried.
Example: /IF "C:\MyFolder"
/InventorySave
Specifies the path to where an inventory should be saved.
IMPORTANT: This cannot be the same or within the folder path specified using /IF
Example: /IS "C:\MyInventories"
/JF
/JobFile
Specifies the path to a FileWatcher Job File.
Example: /JF "C:\MyJobs.xml"