Skip to main content
Solved

How to get the Current Working Folder

  • August 22, 2017
  • 2 replies
  • 253 views

sussexpete
Contributor
Forum|alt.badge.img+4

Hi.

I want to include the name of the "current working folder" (e.g. H:\\00-Data\\FME\\PlanningSitesForGIS) in the body of an emailer so that the recipient can see where a workspace has been run from.

I am using the FME_MF_DIR parameter to do this but as it is listed separately from "current working folder" in the log, wonder if this is correct?

I would also like to know if the parameters FME_MF_NAME and WORKSPACE_NAME are one and the same?

Many thanks for any help

Best answer by redgeographics

FME_MF_DIR refers to the directory the current workspace is stored in, so yes, I'd say that's the one you're after.

FME_MF_NAME and WORKSPACE_NAME differ in that the FME_MF_NAME is the filename of the current workspace, the WORKSPACE_NAME omits the .fmw part

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

redgeographics
Celebrity
Forum|alt.badge.img+62
  • Celebrity
  • Best Answer
  • August 22, 2017

FME_MF_DIR refers to the directory the current workspace is stored in, so yes, I'd say that's the one you're after.

FME_MF_NAME and WORKSPACE_NAME differ in that the FME_MF_NAME is the filename of the current workspace, the WORKSPACE_NAME omits the .fmw part


sussexpete
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • August 22, 2017

Many thanks redgeographics. I've included a line which works in my emailer:

FME Workspace has run: $(WORKSPACE_NAME) from $(FME_MF_DIR)