Use > Inventory Tools > Analysis Workbench Overview > Overview of Command Line Parameters

Overview of Command Line Parameters

By using command line parameters, you can create shortcuts on your desktop that start Analysis Workbench with specified state images, directories containing scan files or a specific scan file.

The command line parameters can be combined, so that you can for example, load a state image and a directory of scan files or specific scan files.

This can be a very useful tool for cases where you have already loaded a large amount of data into the Analysis Workbench workspace and have performed some analysis on this data. You can save the state image of the session, and at the next session you can use command line parameters to add any new scan files that have been found in your scan file repository directories.

Because Analysis Workbench does not load duplicate scan files (that is, an identical scan file), no current data will be overwritten. Scan files are considered identical when the Asset Number field is the same even if the scan file name is different.

You can also use a command line parameter to specify that all dates in Analysis Workbench use the standard international date format instead of the one set up in Windows.

Creating a Shortcut on the Desktop

To create a shortcut on the desktop including parameters:

  1. Create a shortcut without parameters first:
  2. Drag the Analysis Workbench icon onto the desktop with the right mouse button.
  3. Select the Create shortcuts here option from the menu that is displayed when releasing the mouse.
  4. Right-click on the shortcut and open the properties dialog box.
  5. Add any command line parameters to the end of the target field separated from the executable name by a space.

Scan File Names Command Line Parameter

This is one or more scan file names. The following conditions apply:

Scan file names specified are loaded after a state image or a directory specified.

If the path to any parameter (specific scan files) contains spaces, it must be enclosed in the double quotes.

Syntax

The syntax for scan file command line parameter is as follows:

[Fully qualified scan file names separated by spaces]

Examples

Case 1: Path to the Scan File Does Not Contain Spaces

C:\UCMDB\DataFlowProbe\tools\InventoryTools\AnalysisWorkbench\State Images

\Samples.AWS

Case 2: Name of One Scan File Contains Spaces

"C:\Inventory scans\LND1250.xsf" E:\scans\Test.xsf

Standard International Date Command Line Parameter

When specified, all dates use the standard international date format instead of the one set up in Windows. This is useful when setting up scripts for exports.

Syntax

The syntax for standard international date command line parameter is as follows:

[/STD_DATES]or [-STD_DATES]

The command line switch only turns on the standard international date format. There is no command line switch to turn it off.

Using Combined Command Line Parameters

You can combine the three command line parameters so that Analysis Workbench can be started with different data in it.

Specify the names of the scan files, or the state image you want to load. If a directory name is specified, all the scan files in that directory are loaded. The command line parameter priority is always:

  • State Image
  • Directories (only 1 is allowed)
  • Scan files (multiple scan files can be specified)

Syntax

The syntax for combined command line parameters is as follows:

[Fully qualified directory name] [State image name] [Fully qualified scan file names separated by spaces]

Examples

For example, you may want to load a saved state image and also include new scan files contained in your repository directory.

  • Case 1: Path to the State Image and Scan File Directory Do Not Contain Space.

    C:\states\State1.aws c:\NewScanfiles

  • Case 2: The State Image and the Scan File Contains Spaces

    "C:\states\State 1.aws” “c:\New Scan Files"