Skip to main content
Solved

how can i run my workbench with batch file ?

  • May 4, 2022 4:46 PM UTC
  • 2 replies
  • 719 views

charlesdollat
Contributor
Forum|alt.badge.img+3

hello i would like to RUN my workbench with a batch file, so i copied the first line of the log but when i try it, it just launch FME with the workbench but he doesn't run it. how could i do that ?

 

thanks

 

charles.

Best answer by rahulsharma

Hi @charlesdollat​ 

In the log window, you should see from Line 5 to Line 10  If you copy and paste those lines, ensure that it is in a single line and save it into a bat file it should work. 

Feature Caching is ON
The workspace may run slower because features are being recorded on all output ports.
 
    Command line to run this workspace:
        "C:\Program Files\FME_2021.2\fme.exe" C:\FMEData2020\Workspaces\DesktopAdvanced\Attributes-Ex4-Complete-Advanced.fmw
          --SourceDataset_MITAB_3 "C:\FMEData2020\Data\Parks\Parks.tab"
          --DestDataset_FILEGDB_3 "C:\FMEData2020\Output\Parks.gdb"
          --FME_LAUNCH_VIEWER_APP "YES"

The above taken from our tutorial workspace can be run from the command line using following command

"C:\Program Files\FME_2021.2\fme.exe" C:\FMEData2020\Workspaces\DesktopAdvanced\Attributes-Ex4-Complete-Advanced.fmw --SourceDataset_MITAB_3 "C:\FMEData2020\Data\Parks\Parks.tab" --DestDataset_FILEGDB_3 "C:\FMEData2020\Output\Parks.gdb"

If you need more help please refer to the following 

Article -- Batch processing from the command line

Working with command files

 

 

 

View original
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

rahulsharma
Safer
Forum|alt.badge.img+12
  • Safer
  • Best Answer
  • May 4, 2022 5:51 PM UTC

Hi @charlesdollat​ 

In the log window, you should see from Line 5 to Line 10  If you copy and paste those lines, ensure that it is in a single line and save it into a bat file it should work. 

Feature Caching is ON
The workspace may run slower because features are being recorded on all output ports.
 
    Command line to run this workspace:
        "C:\Program Files\FME_2021.2\fme.exe" C:\FMEData2020\Workspaces\DesktopAdvanced\Attributes-Ex4-Complete-Advanced.fmw
          --SourceDataset_MITAB_3 "C:\FMEData2020\Data\Parks\Parks.tab"
          --DestDataset_FILEGDB_3 "C:\FMEData2020\Output\Parks.gdb"
          --FME_LAUNCH_VIEWER_APP "YES"

The above taken from our tutorial workspace can be run from the command line using following command

"C:\Program Files\FME_2021.2\fme.exe" C:\FMEData2020\Workspaces\DesktopAdvanced\Attributes-Ex4-Complete-Advanced.fmw --SourceDataset_MITAB_3 "C:\FMEData2020\Data\Parks\Parks.tab" --DestDataset_FILEGDB_3 "C:\FMEData2020\Output\Parks.gdb"

If you need more help please refer to the following 

Article -- Batch processing from the command line

Working with command files

 

 

 


charlesdollat
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • May 5, 2022 9:11 AM UTC

Hi @charlesdollat​ 

In the log window, you should see from Line 5 to Line 10  If you copy and paste those lines, ensure that it is in a single line and save it into a bat file it should work. 

Feature Caching is ON
The workspace may run slower because features are being recorded on all output ports.
 
    Command line to run this workspace:
        "C:\Program Files\FME_2021.2\fme.exe" C:\FMEData2020\Workspaces\DesktopAdvanced\Attributes-Ex4-Complete-Advanced.fmw
          --SourceDataset_MITAB_3 "C:\FMEData2020\Data\Parks\Parks.tab"
          --DestDataset_FILEGDB_3 "C:\FMEData2020\Output\Parks.gdb"
          --FME_LAUNCH_VIEWER_APP "YES"

The above taken from our tutorial workspace can be run from the command line using following command

"C:\Program Files\FME_2021.2\fme.exe" C:\FMEData2020\Workspaces\DesktopAdvanced\Attributes-Ex4-Complete-Advanced.fmw --SourceDataset_MITAB_3 "C:\FMEData2020\Data\Parks\Parks.tab" --DestDataset_FILEGDB_3 "C:\FMEData2020\Output\Parks.gdb"

If you need more help please refer to the following 

Article -- Batch processing from the command line

Working with command files

 

 

 

thanks !  it's working