Jump to content
Mr. Brendan Larcombe

Using getDesignDir() in windows applications

Recommended Posts

Hi Guys,

 

I'm trying to use getDesignDir() to output the directory path of a linked computation. The problem is it generates a directory address with forward slashes rather than backslashes and I need to run it via windows command prompt which doesn't recognise the address as valid due to the forward slashes. Now, I know what I need to do, but I've got no idea where to start or how to go about doing it.

 

Any advice would be greatly appreciated.

Share this post


Link to post
Share on other sites

Hi,

 

You can use the following command to replace the forward slashes into backslashes:

getDesignDir().replaceByString("/", "\?").replaceByString("?", "")

Until recently we've never had such a request, all external programs could handle the (ISO standard) forward slashes. You are now the third one with this request within a month, so we will come up with a way to make this more straight forward.

 

Arne

Share this post


Link to post
Share on other sites

Just as an update:

The commands that return the relevant paths now all have a Windows equivalent that return the paths with a backlash as the path separator:

getDesignDir - getWindowsDesignDir

getResultsDir - getWindowsResultsDir

getInputDir - getWindowsInputDir

resolveEnv - resolveWindowsEnv

 

Best regards

Arne

  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...