Skip to main content
Solved

how can i run my workbench with batch file ?


charlesdollat
Participant
Forum|alt.badge.img

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
Did this help you find an answer to your question?

2 replies

rahulsharma
Safer
Forum|alt.badge.img+10
  • Safer
  • Best Answer
  • May 4, 2022

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
Participant
Forum|alt.badge.img
rahulsharma wrote:

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings