Skip to main content
Solved

Start an FME Workspace from a batch file which includes the paths to source and output files for inputs and outputs

  • November 11, 2022
  • 2 replies
  • 93 views

tigercole

I would like to start an FME workspace that has 2 CSV readers with a batch script that specifies the path for the CSV files that each CSV reader (in red). The workspace also has a CSV and Shapefile writer (in green) that I need to specify the output paths for.

FME_WorkspaceIs this possible?

 

tC/.

Best answer by nielsgerrits

Yes you can. When you run workbench, the first lines of the log display how to do this:

    Command line to run this workspace:
        C:\apps\fme_2021_2_6\fme.exe C:\TMP\test\none2none.fmw
          --PARAMETER "$(FME_MF_DIR_USERTYPED)test.tbx"
          --FME_LAUNCH_VIEWER_APP "YES"

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

tomfriedl
Contributor
Forum|alt.badge.img+13
  • Contributor
  • 177 replies
  • November 11, 2022

The command to execute a batch file is in the first lines of the logfile.


nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • Best Answer
  • November 11, 2022

Yes you can. When you run workbench, the first lines of the log display how to do this:

    Command line to run this workspace:
        C:\apps\fme_2021_2_6\fme.exe C:\TMP\test\none2none.fmw
          --PARAMETER "$(FME_MF_DIR_USERTYPED)test.tbx"
          --FME_LAUNCH_VIEWER_APP "YES"