Skip to main content
Question

Workspace in cmd

  • September 14, 2018
  • 2 replies
  • 13 views

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

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

alexlynch3450
Contributor
Forum|alt.badge.img+15
  • Contributor
  • September 14, 2018

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)


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • September 14, 2018

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