Skip to main content
Solved

How to get the Current Working Folder


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

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

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+50
  • 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)


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