set working directory

Use this for suggestions about improvements in RATS
randerson
Posts: 14
Joined: Wed Dec 01, 2010 11:24 am

set working directory

Unread post by randerson »

It would be nice to have a command that allows setting the working directory inside a program. execpath is almost the same except that it requires you have started the program... There exists a menu command to set working directory, so the functionality exists, but there does not seem to be a programming command for the same functionality. (I searched the reference manual in Acrobat, and did not locate such a function...)

My apology if I missed such a command.

Richard Anderson
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: set working directory

Unread post by TomDoan »

randerson wrote:It would be nice to have a command that allows setting the working directory inside a program. execpath is almost the same except that it requires you have started the program... There exists a menu command to set working directory, so the functionality exists, but there does not seem to be a programming command for the same functionality. (I searched the reference manual in Acrobat, and did not locate such a function...)

My apology if I missed such a command.

Richard Anderson
I'm not sure why it's not documented, but (for instance)

env path=c:\rats\textbooks\greene

will do the trick. We will also be adding a "recently used directories" operation to a future release.
Post Reply