Command-line wizard

The built-in command-line wizard helps you generate command-line syntax based on the options you select. You can save the generated command to a .bat file and use it to schedule or automate data generation tasks.

Open the command-line wizard

Open the command-line wizard in one of these ways:

  • In the lower-left corner of the Data Generator Project Properties wizard, click Save Command Line.

Open the command-line wizard from the Data Generator Project Properties wizard

  • In the lower-left corner of the Data Population Wizard, click Save Command Line.

Open the command-line wizard from the Data Population Wizard

Command-line wizard options

The table provides options available in the command-line wizard.

Tip

To include an option, select its checkbox. To exclude an option, clear its checkbox.

Name Description
Project File Specifies a data generation template file (.dgen) to use.
To specify the file, click the ellipsis (…) and select the .dgen file.
This option is required.
Usage: /projectfile:<file_path>
Connection Specifies the connection string.
Usage: /connection:<connection_string>
Password Specifies the server password and overrides the values from the /connection switch.
Usage: /password:<pw>
Error Mode Specifies the application behavior when encountering an error:
  • Ignore – Ignores all errors and continues script execution.
  • Abort – Cancels script execution if an error occurs.

Usage: /errormode:<ignore|abort>
Treat Warning as Error Specifies the behavior of treating warnings:
  • Yes – Treats all warnings as errors, and subsequent behavior will be determined by the errormode option.
  • No – Ignores warnings and continues executing the command-line script.
    Usage: /treatWarningAsError:<Yes|No>
Echo OFF Wraps all text in the .bat file within the @Echo OFF ... Echo ON block.
Keep opened Adds the pause command at the end of the .bat file to keep the command window open after execution.
PowerShell Adds the & symbol at the beginning of the .bat file to ensure PowerShell compatibility.

The text box displays the generated script with the specified options.

Command-line wizard

To save the settings in the .bat file, click Save.

To close the dialog, click Cancel.

Command-line validation

To verify the settings, click Validate.

If the parameter validation succeeds, the following message appears:

Parameter validation - successful

If the parameter validation fails the tool displays the error, for example:

Parameter validation - failed