38.6.2 Procedure - Running the Application from WinGP / D-Script Trigger

  1. On the [Parts (P)] menu, select [D-Script (R)] and click [Create] in the [D-Script List] dialog box.

  2. Click the [Function] tab. Simply click the instruction available to the script to easily place the [Built-In Function (Instruction)].

  3. On the [Built-In Function (Instruction)] pull-down menu, click [Others] and double-click [Start Application].

  4. Configure the settings in the dialog box as shown below.

    Parameter 1

    Specify the EXE file path.

    38.6.1 Procedure - Running the Application from WinGP / Activate Switch

    Parameter 2

    Select the option (Argument) to run the executable using the [Parameter]. Up to 255 characters can be used to set the [Parameter].

    38.6.1 Procedure - Running the Application from WinGP / Activate Switch

    Parameter 3

    Select [Allow Multiple Instances] or [Prevent Multiple Instances]. If you select [Prevent Multiple Instances], enter the window title.

    22.11.10.2 Application Trigger

    Parameter 4

    Select [0:Partial words] or [1:Whole words only].

    22.11.10.2 Application Trigger

  5. Click [OK] to enter the parameter configured in procedure 4 in [Script Expression Area].
    Example)

Exec_Process("C:\Program Files\Microsoft Office\Office\EXCEL.EXE", "C:\Documents and Settings\User\My Documents\ProductionControl.xls","",0)