/
Creating Trigger in JSCAPE to Run a Batch File to Rename File with a Unique Identifier

Creating Trigger in JSCAPE to Run a Batch File to Rename File with a Unique Identifier

To call a batch file for renaming the file with a unique identifier for Adeptia:

  1. Login to the JSCAPE MFT Server web interface.
  2. Go to the Domains tab, select the domain, and click Edit.
  3. Select Triggers from the left menu.
  4. Click Add



    The Add Trigger window appears.
  5. Provide the name and description of the trigger.
  6. Select "File Upload" in the Event Type drop-down list.



  7. Click Next.
  8. Skip Trigger Conditions wizard and click Next.
  9. On the Trigger Action, click Add.
    The Add Action window appears.
  10. Select Run Process from the Action drop-down list.
  11. Click OK.



    The Run Process window appears.
  12. Provide the absolute file path and file name in the Program text box for your batch file. 
  13. Define the space separated arguments in the Arguments text box. You can also use predefined variables. 
  14. Provide the name and path for the batch execution in the Output Stream and Error Stream text boxes respectively.



    Click Add Variable to use predefined variables for getting the path and file name of the uploaded file. 
    Click Add Function to use predefined functions in JSCAPE.  To configure the Run Process Trigger action, click here.
  15. Click OK to close the Run Action window.
  16. Click OK to create a new trigger.
    The new trigger is created successfully.

Related content