[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing arguments to a .sav file



<deckard_007@my-deja.com> wrote in message
8kkaev$7v9$1@nnrp1.deja.com">news:8kkaev$7v9$1@nnrp1.deja.com...
> Hi,
>
> does anyone know whether it's possible to pass arguments to an exported
> .sav idl-runtime file ? I cannot find anything about this in the
> documentation.
> I want to be able to use my idl-program totally not interactive and I
> thought a .sav file would be the best way.

Hi,

Someone else may have a more definitive answer, but this is a PC-specific
solution for a sample IDL runtime application App.sav:

; Calling IDL runtime with parameters from DOS:
;
;    <AppDir> is directory containing App.sav
;
;    cd <AppDir>
;    C:\RSI\IDL53\bin\bin.x86\idlrt.exe
app,'a-passed-string',parm1=42,/parm2
;    ^---------your-path-here---------^
^-ABSOLUTELY-NO-SPACES-ALLOWED-HERE-^

Good luck!

--
-Dick

Dick Jackson                     /         dick@d-jackson.com
D-Jackson Software Consulting   /    http://www.d-jackson.com
Calgary, Alberta, Canada       /   Voice/Fax: +1-403-242-7398