Hi, Anyone knows how to pass a different file path (parameter) in Batch File?
I am calling my fmw in a batch file however I cannot change my source and destination path.
Hi, Anyone knows how to pass a different file path (parameter) in Batch File?
I am calling my fmw in a batch file however I cannot change my source and destination path.
Best answer by ryanatsafe
Make sure that the source and destination parameters are published parameters. Then use the published parameter names as flags in the batch file. It'll look something like this:
fme myworkspace.fmw --SourceDataset_ESRISHAPE "c:\\data\\parks.shp" --DestDataset_ESRISHAPE "C:\\SHP\\output.shp"
You can find an example of the command line entry to use at the top of the log file when you run the workspace in Workbench.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.