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 #90860 is a reply to message #90849] Wed, 29 April 2015 01:26 Go to previous messageGo to previous message
Kai Heckel is currently offline  Kai Heckel
Messages: 51
Registered: April 2015
Member
Am Dienstag, 28. April 2015 13:58:27 UTC+2 schrieb Kai Heckel:
> 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
>
>
> This block is part of a "FOR"-loop, which defines "dirname" as the name of a folder.
>
> I'd really appreciate your help!
>
>
> Thanks everyone


I found a solution for my problem.

By simply cutting the path using STRMID and saving it into a variable it is possible to refer to this path later.
[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 13:58:07 PDT 2025

Total time taken to generate the page: 0.00402 seconds