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 #44054 is a reply to message #44053] Mon, 16 May 2005 13:04 Go to previous messageGo to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
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
>

If I understand it right, you want to CD to a certain directory without
typing the full directory name all the time. You could

1. Assign the full path to a string variable in your IDL startup file

mydir = '/very/long/full/path/to/dir'

Then you can just do

IDL> cd, mydir


2. Write a procedure

PRO cdmydir

cd, '/very/long/full/path/to/dir'

END

and the do

IDL> cdmydir

whenever you need it.

Cheers,
Benjamin
[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: Sun Apr 26 16:42:04 PDT 2026

Total time taken to generate the page: 0.64065 seconds