External Tools Working Directory

Having trouble installing Oxygen? Got a bug to report? Post it all here.
guravage
Posts: 1
Joined: Fri Jul 23, 2004 1:43 pm

External Tools Working Directory

Post 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
Michael A. Guravage
guravage@solcon.nl
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Post 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.
Post Reply