comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: alias in idl
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: alias in idl [message #44052] Mon, 16 May 2005 15:10 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
Koh Leong Tah wrote:
> hi all,
> i have a directory which I happen to restore structures on pretty often
> and i was wondering if there's a way to have a shortcut name to that
> directory that i can setup, maybe in .idlinit?
> thanks,
> kl
>


Besides what has already been mentioned, you can also create an
environmental variable with a value of the directory path. Then, in IDL
you can use:

dir = getenv('NAME_OF_ENV_VAR')

Something like this is can be really handy if you give your code to
someone else and they have a different directory structure. Instead of
editing your code or IDL startup files, you only have to create the
appropriate variable. Just another way to skin this cat.

Of course, I'd say to go with the solutions that have already been
offered. Something like this only needs to be used if you want to
distribute your code to others.

-Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: LabView script node and NetCDF
Next Topic: Re: Looking for IDL code documentation standards

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:47:01 PDT 2025

Total time taken to generate the page: 0.10460 seconds