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

Home » Public Forums » archive » Re: Is there any make_folder stuff like that in IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Is there any make_folder stuff like that in IDL? [message #53508] Tue, 17 April 2007 18:46
kim20026 is currently offline  kim20026
Messages: 54
Registered: November 2006
Member
On Apr 18, 1:07 am, Carsten Lechte <c...@toppoint.de> wrote:
> Christopher Thom wrote:
>> for ii=0, 364 do file_mkdir, 'mynewdir'+strtrim(string(ii),2)
>
> Better yet:
>
> for ii=0, 364 do file_mkdir, 'mynewdir'+string(ii, format='(I03)')
>
> to get nice lexical sorting properties.
>
> chl

Wow!!!! Thanks a loooooot, David, Chris, and Carsten !!!!!
Re: Is there any make_folder stuff like that in IDL? [message #53513 is a reply to message #53508] Tue, 17 April 2007 09:07 Go to previous message
Carsten Lechte is currently offline  Carsten Lechte
Messages: 124
Registered: August 2006
Senior Member
Christopher Thom wrote:
> for ii=0, 364 do file_mkdir, 'mynewdir'+strtrim(string(ii),2)

Better yet:

for ii=0, 364 do file_mkdir, 'mynewdir'+string(ii, format='(I03)')

to get nice lexical sorting properties.


chl
Re: Is there any make_folder stuff like that in IDL? [message #53515 is a reply to message #53513] Tue, 17 April 2007 07:58 Go to previous message
Christopher Thom is currently offline  Christopher Thom
Messages: 66
Registered: October 2006
Member
Quoth DirtyHarry:

> I need to make 365 folders per simulation year for storing temporary
> image data. so I have been trying it manually, but it is not a good
> idea, I think. Is there anyone who has functions or privately-made
> 'make_folders.pro' stuff like that?

How about

for ii=0, 364 do file_mkdir, 'mynewdir'+strtrim(string(ii),2)

?

cheers
chris
Re: Is there any make_folder stuff like that in IDL? [message #53516 is a reply to message #53515] Tue, 17 April 2007 07:06 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
DirtyHarry writes:

> I need to make 365 folders per simulation year for storing temporary
> image data. so I have been trying it manually, but it is not a good
> idea, I think. Is there anyone who has functions or privately-made
> 'make_folders.pro' stuff like that?

Have you considered FILE_MKDIR? :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL DDE and ZEMAX
Next Topic: Annoying ROIs

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

Current Time: Wed Oct 08 19:19:10 PDT 2025

Total time taken to generate the page: 0.00393 seconds