Creating a Command Line Export Configuration File

To permanently store export settings, you can create a command line export configuration file. Most export parameters can be stored in this file. Several parameters such as Username, Password, DSN, and Filename must be specified on the command line.

  1. Create an .INI file to hold all of the optional export parameters (for example, STexport.ini).
  2. Save the file to the location of your choice.
  3. Copy the following list of export parameters and paste into the configuration file:
  4. Set the value of each export parameter. The values do not need to be enclosed in quotes. If the value is not set, the default is used. Parameter values are not case-sensitive.
  5. Save the file.
  6. To access the file from the command line, include the FIlename (-f ) parameter and the location of the file. For example:
    C:\>STWExport.exe -u Admin -p admin -d YourDBName  -f "C:\STexport.ini"
    Note: The configuration file header [SilkTestExport] must appear at the top of the file, however, you can change the order of the parameters. If you need to comment out a parameter, place a backslash ( \ ) character in front of the parameter name. Parameters specified in the configuration file override any identical parameters specified on the command line with one exception. If the Projects or System parameter is specified both in the configuration file and on the command line, the values for each are used.