Page 1 of 1

External Tools Working Directory

Posted: Fri Jul 23, 2004 2:29 pm
by guravage
Hello,

How can I set an external tool's working directory to be the exhaustive directory path of the currently edited file - something like ${cfd}? Setting the directory path explicitely works fine, but attempts to set it relatively, i.e. dot or blank, place me in oXygen's installation directory. BTW, I am using oXygen 4.2 and java 1.4.2.

Thanks in advance.

Cheers,

Michael

Posted: Fri Jul 23, 2004 2:44 pm
by Dan
In the next release of the editor the ${cfd} macro will be accepted as working directory. Until then you can use the following workaround:

Make a bat file that changes directory before calling your tool. Something like:
  • @echo off
    echo The first argument was: %1
    cd %1

    rem - Instead of dir you can use any other command.
    rem - and pass the following arguments using %2 %3 ...
    dir
Set this bat file as external tool. Configure its command line to have as first argument the ${cfd} macro.