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

Home » Public Forums » archive » Create folder below certain file
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: Create folder below certain file [message #90850 is a reply to message #90849] Tue, 28 April 2015 08:02 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Tuesday, April 28, 2015 at 6:58:27 AM UTC-5, Kai Heckel wrote:
> Hello everyone!
>
> I am currently working on an IDL project in which I want to find a specified file. Once I set the definition for my "IF"-statement, I want to create a new folder below the file...
>
> So this is basically what it looks like:
>
> IF (substring_month EQ '01') then begin
> FILE_MKDIR, '/January'
> FILE_MOVE, dirname[k], 'January'
> ENDIF

Well, '/January' specifies the root directory. To create a new directory in the current working directory, use './January' instead.

Of course, this assumes the current working directory is where you find the specified file. A more robust piece of code would parse the result from whatever function you use to find the file.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Resolve_all behaves differently on that command line that in the IDE console
Next Topic: How multiply two arrays in IDL?

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

Current Time: Wed Oct 08 15:48:24 PDT 2025

Total time taken to generate the page: 0.00454 seconds