Generating Data through the Command Line

Last modified: March 28, 2025

You can automate data generation using the command line.

  1. Open the Command Prompt.

    Note

    To run the Command Line in Windows 10:

    From the Desktop Mode

    • Move the mouse cursor to the exact lower left corner until the desktop shortcuts menu appears.
    • Right-click to see the shortcut menu and than click Run.

    From the Charms Bar

    • Move your mouse to the upper right corner until the Charms Bar appears.
    • Select Apps from the list and type run in the search box.
    • Click Run from the search results.

    Use Windows + R Shortcut Keys

    • In desktop mode, press the Windows + R keys, to show the Run command line.
    • In the window that opens, type cmd and press Enter.
  2. In the Command Prompt that opens, specify the operation you want to perform and the required parameters and arguments (actions you want to run), for example as follows:

     datagenerator.com /generatedata [/switch1[:value | [parameter1:value parameter2:value ..]] /switch2 ..]
    
  3. Press ENTER to run the process.

  4. Select the corresponding command line switches to perform the required operations:

Argument Action and Usage
/connection This switch is used to specify a connection string. The command line looks like: /connection:<connection_string>
/errormode This switch is used to specify the application behavior when an error is encountered: * To ignore all errors during the data population process, set ignore. * To cancel the data population process if any error occurs, set abort. The command line looks as follows: /errormode:<ignore|abort>
/password This switch is used to specify a password. It overrides the password specified in the connection string. The command line looks like: /password:<pw>
/projectfile This switch is used to specify the data generation template to use. Some project options can be overridden by switches. The command line looks as follows: /projectfile:<path>