Question

Workspace in cmd

  • 14 September 2018
  • 2 replies
  • 8 views

How can i create workspace using cmd and select features in the commandline itself


2 replies

Badge +8

Not sure what you mean by "creating a workspace using cmd" but the code below runs designated workspace from commandline

import os

import subprocess

args = [r"C:\\Program Files\\FME\\fme.exe", "C:\\\\Users\\\\$(user)\\\\Desktop\\\\testpython\\\\Exercisela-Complete.fmw"]

subprocess.Popen(args)

Badge +3

U can set env variables in a command line and then call a workspace using these env variables using a EnvironmentVariableFetcher.

Reply