Skip to main content
Solved

Is it possible to run FME from the command line WITH the name of a file (not the workbench file) to be processed as a parameter? (ie C:\\fme.exe workbench.fmw inputFile.xlsx)


michael_m
Contributor
Forum|alt.badge.img+1

I am trying to come up with a way to use FME Desktop to process files that will be automatically exported from a system and will likely be named with a timestamp (eg filename20230512132945.xlsx). The goal is to create an automated process to handle these files as the appear. I already run FME Desktop from the command line (via windows Task Scheduler), but I am wondering if there is a way to do it and also specify the name of the file I want to have read as a parameter?

Something like C:\\fme.exe workbench.fmw inputFile.xlsx

 

I don't think I am going to be able to count on these files having the same name every time, otherwise I could just run the workbench (c:\\fme.exe workbench.fmw)

 

I'd be grateful for any suggestions. I would happily try to do this with FME Server but it is not currently available to me.

 

Thanks,

 

Mike

Best answer by DanAtSafe

Yes - see https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Desktop/Workbench/Working_with_Command_Files.htm The syntax is at the top of your workspace (if viewed in a text editor) or will appear in blue at the top of the log window in Workbench at run-time.

View original
Did this help you find an answer to your question?

2 replies

DanAtSafe
Safer
Forum|alt.badge.img+18
  • Safer
  • Best Answer
  • May 12, 2023

Yes - see https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Desktop/Workbench/Working_with_Command_Files.htm The syntax is at the top of your workspace (if viewed in a text editor) or will appear in blue at the top of the log window in Workbench at run-time.


michael_m
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • May 12, 2023
DanAtSafe wrote:

Yes - see https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Desktop/Workbench/Working_with_Command_Files.htm The syntax is at the top of your workspace (if viewed in a text editor) or will appear in blue at the top of the log window in Workbench at run-time.

Thanks, Dan!


Reply


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