> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Running the program

> Launch ABBYY FlexiCapture stations and servers in Distributed or Standalone mode, with registry keys and command line parameters that control startup.

<Tabs>
  <Tab title="Distributed">
    ## Launch ABBYY FlexiCapture

    The server and processing station services start automatically. The stations and the Processing Server can be either running or stopped. The Processing Server is started from the Processing Server Monitor. The Processing Stations are started by the user, or automatically by the Processing Server if the corresponding settings have been selected.

    To monitor and control the Processing Server and the Application Server, select the following items from the **Start** menu:

    * **Start → All Programs → ABBYY FlexiCapture 12 Servers → Processing Server** to start the Processing Server Monitor.
    * **Start → All Programs → ABBYY FlexiCapture 12 Servers → Administration and Monitoring Console** to open the main page of the console in your browser and control the Application Server.

    ABBYY FlexiCapture stations are started by selecting the corresponding menu items from **Start → All Programs → ABBYY FlexiCapture 12 Stations**.

    ## Registry keys

    You can use registry keys in `Shell\StartUp` to control how the application is launched. These keys are not created in the registry by default; if required, the Administrator can add them to the registry of the user's operating system. Registry keys can be overridden by the corresponding command line launch parameters.

    ## Command line parameters

    The following parameters are used to start stations from the command line:

    ```
    "path to FlexiCapture.exe" [/Station:(Setup,Validator,RemoteValidator,Verificator)] [/Project:"path to project"] [/Batch:"batch name"] [/ProhibitChangePath]
    ```

    * `path to FlexiCapture.exe` — for example, `C:\Program Files (x86)\ABBYY FlexiCapture Stations\FlexiCapture.exe`.
    * `/Station:(Setup,Validator,RemoteValidator,Verificator)` — specifies the station (Project Setup Station, Verification Station, Remote Verification Station, or Data Verification Station respectively). If no mode is specified, the program prompts you to select a mode at startup.
    * `/Project:"path to project"` — sets the project that is opened automatically when the application is launched.
    * `/Batch:"batch name"` — sets the batch that is opened automatically when the application is launched. You may need to open a particular batch in the Project Setup Station. Other stations operate with queues.
    * `/ProhibitChangePath` — prohibits changing the batch and project that open automatically in Operator mode.

    <Note>
      The path to the project can be viewed in the corresponding station in the registry branch `HKEY_CURRENT_USER\Software\ABBYY\FlexiCapture\12.0\Shell\MRU_List`. The **List** key contains the projects that were opened in the station. From the value of this key, copy the path to the project on the server: `https://<ApplicationServer>/<guid>/<project name>`. In command line parameters, the project name must be enclosed in quotes.
    </Note>

    For example, to open the `Invoices_eng` project from the server in the Verification Station, use the following command:

    ```
    "C:\Program Files (x86)\ABBYY FlexiCapture Stations\FlexiCapture.exe" /Station:Validator /Project:https://127.0.0.1/84506f53-8ca7-4095-9444-d6af76e0c192/Invoices_eng
    ```
  </Tab>

  <Tab title="Standalone">
    ## Launch ABBYY FlexiCapture

    * **Administrator mode** — go to **Start → All Programs → ABBYY FlexiCapture 12** and select **ABBYY FlexiCapture Administrator Station**.
    * **Operator mode** — go to **Start → All Programs → ABBYY FlexiCapture 12** and select **ABBYY FlexiCapture Operator Station**.

    Before running the program, ensure that:

    * The scanner is connected to the PC and powered on. If your scanner has not been connected, refer to the scanner user guide. For the scanner to operate correctly, power on the scanner before you power on the PC.
    * A protection key has been installed on your PC. You cannot run the program without it.

    ## Registry keys

    You can use the following registry keys in `Shell\StartUp` to control how the application is launched:

    * `AdminMode` — defines whether the application runs in Operator or Administrator mode.
    * `Project` — sets the project that is opened automatically when the application is launched.
    * `Batch` — sets the batch that is opened automatically when the application is launched (the batch must be specified).
    * `ProhibitChangePath` — prohibits changing the batch and project that open automatically in Operator mode (set the key value to `True`).

    These keys are not created in the registry by default; if required, the Administrator can add them to the registry of the user's operating system. Registry keys can be overridden by the corresponding command line launch parameters.

    ## Command line parameters

    The following parameters can be used to launch the application via the command line:

    ```
    FlexiCapture.exe [/Station:(Admin,Operator)] [/Project:"path to project"] [/Batch:"batch name"] [/ProhibitChangePath]
    ```

    * `/Station:(Admin,Operator)` — defines whether the application runs in Operator or Administrator mode. If no mode is specified, a dialog box prompts the user to select the mode.
    * `/Project:"path to project"` — sets the project that is opened automatically when the application is launched.
    * `/Batch:"batch name"` — sets the batch that is opened automatically when the application is launched.
    * `/ProhibitChangePath` — prohibits changing the batch and project that open automatically in Operator mode.
  </Tab>
</Tabs>
