Changing directories in IDL [message #54854] |
Tue, 17 July 2007 07:43  |
trillianx
Messages: 1 Registered: July 2007
|
Junior Member |
|
|
When I am in IDL and I would like to change directories ( e.g go into
another folder )? What are the commands one can use to do such a
thing. The usual unix commands do not work.
Thanks!
|
|
|
Re: Changing directories in IDL [message #54919 is a reply to message #54854] |
Wed, 18 July 2007 11:12  |
henrygroe
Messages: 30 Registered: August 2003
|
Member |
|
|
On Jul 17, 7:43 am, trilli...@gmail.com wrote:
> When I am in IDL and I would like to change directories ( e.g go into
> another folder )? What are the commands one can use to do such a
> thing. The usual unix commands do not work.
>
> Thanks!
In my experience (though this may be just because I'm usually sloppy
about where I launch IDL from) it's a poor idea to have any IDL
commands dependent upon being within a specific directory. I try
to have everything fully path'd out,
e.g. '~/obsdata/nirspec/20070707/spec'
instead of just assuming I'm inside the right directory.
(And, usually my paths are built up of various string variables,
particularly dates.)
But, pardon the above aside, the command you want is "cd", e.g.:
cd,'mynewdir'
(See CD in IDL help.)
cheers,
-Henry
|
|
|