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

Home » Public Forums » archive » Re: mkdir?
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: mkdir? [message #23755 is a reply to message #23752] Tue, 13 February 2001 19:17 Go to previous message
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
"Christopher W. O'Dell" wrote:

> Is there anyway to create a directory in your OS from within
> IDL?
> I keep running into problems using the SAVE function, when I
> have forgotten to create the directory to which I am
> saving. I just want to add a line of code that checks if
> the directory exists, and if it doesn't it makes the
> directory.
> BTW, I'm running on a Windows platform (your are welcome to
> make fun of me at this point...)

If you have V5.4 you can use FILE_TEST( /DIR) to test if a directory
exists, and FILE_MKDIR to create a directory. If you have an earlier
IDL version you can try to CD to the directory and catch any errors (as
in http://sohowww.nascom.nasa.gov/solarsoft/gen/idl/system/is_d ir.pro)
and SPAWN to create a directory.

Wayne
Landsman
landsman@mpb.gsfc.nasa.gov
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: True Color, but !d.table_size eq 64?
Next Topic: I have the craziest idea...

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

Current Time: Fri Oct 10 14:52:41 PDT 2025

Total time taken to generate the page: 0.87617 seconds