Configuring Input and Output Files Using Command Line Parameters

Some programs look for files based on command line parameters. For example, if the command myprog.exe FOO, where FOO is the value of an input parameter, caused the program to read file FOO.in and write file FOO.out, using a fixed Destination or Source file name would not work. You can substitute parameter values into the file names to support this program type.

  1. From the Design Gateway Parameters tab, create an input String parameter called Run Name.

  2. Set the value, as desired.

  3. From the Files tab, create an input file parameter called In.

    For more information on creating file parameters using the File Parameter Wizard, see Adding File Parameters in the Isight User’s Guide.

  4. From the Input File Destination dialog box, select Fixed File Name.

  5. Enter the following in the text box:

    {var Run Name}.in

    The following example shows the configuration for file parameter In.



    A file parameter called Out is configured similarly, using a substitution in the Output Source name as shown below.



    You can use substitutions with output parameters using the text box adjacent to the Specific location option. You can use substitutions to write the data to a file whose name is based on parameter values. Similarly, you can use substitutions for input file parameters that have Location or File as the Source.