Generating data

You can automate data generation using the command line.

1. Open 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. Specify the operation you want to perform and the required parameters and arguments (actions you want to run) in the Command Prompt, for example as follows:

datagenerator.com /generatedata [/switch1[:value | [parameter1:value parameter2:value ..]] /switch2 ..]

3. Press ENTER to run the process.

Select 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, specify: ignore. To cancel the data population if any error occurs, specify: abort. The command line looks like: /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 data generation template to use. Some project options can be overridden by switches. The command line looks like: /projectfile:<path>