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

Home » Public Forums » archive » Re: Extended dilaog_pickfile
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: Extended dilaog_pickfile [message #67089] Tue, 23 June 2009 05:16
Juggernaut is currently offline  Juggernaut
Messages: 83
Registered: June 2008
Member
On Jun 23, 3:41 am, "Ian Dean" <ian.d.d...@baesystems.com> wrote:
> Hi ,
> Thanks for your post. I've tried something similar, but I end up with a
> number of identically named files in numerous directories and date is the
> only way of deciding which one to choose.
> Top
>    |
>    >---Dir1
>    |       |
>    |       >---Testfile
>    |
>    >---Dir2
>    |        |
>    |        >---Testfile
>    .        .
>    .        .
>    .        .
>    >---Dirn
>    |        |
>    |        >---Testfile
>
> "Ian Dean" <ian.d.d...@baesystems.com> wrote in message
>
> news:4a3f397a$1_1@glkas0286.greenlnk.net...
>
>> Hi,
>>    Is there a better method of file selection than dialog_pickfile?
>> Because I have a number of similar named files (some even have the same
>> name in multiple directories) and an idea of creation date would be VERY
>> helpfui. A sort on date and/or filename would also be a nice to have. i.e.
>> I'm looking for something like windows explorer (on windoze obviously) or
>> file manager (under X-windows).
>>    Unfortunately because of the X-windows, I'm limited to version 5.4.
>
>> Any help would be most welcome.
>
>> Regards,
>>    Ian

If you find these "similar" files and run file_info(filename) on
these, you could check the ATIME, CTIME, MTIME structure elements that
are returned by file_info for the most recent or whatever time you're
looking for. These keywords are not useful for FAT16,32... file
systems apparently. Could be worth looking into.

Bennett
Re: Extended dilaog_pickfile [message #67091 is a reply to message #67089] Tue, 23 June 2009 00:41 Go to previous message
Ian Dean is currently offline  Ian Dean
Messages: 26
Registered: January 2000
Junior Member
Hi ,
Thanks for your post. I've tried something similar, but I end up with a
number of identically named files in numerous directories and date is the
only way of deciding which one to choose.
Top
|
>---Dir1
| |
| >---Testfile
|
>---Dir2
| |
| >---Testfile
. .
. .
. .
>---Dirn
| |
| >---Testfile

"Ian Dean" <ian.d.dean@baesystems.com> wrote in message
news:4a3f397a$1_1@glkas0286.greenlnk.net...
> Hi,
> Is there a better method of file selection than dialog_pickfile?
> Because I have a number of similar named files (some even have the same
> name in multiple directories) and an idea of creation date would be VERY
> helpfui. A sort on date and/or filename would also be a nice to have. i.e.
> I'm looking for something like windows explorer (on windoze obviously) or
> file manager (under X-windows).
> Unfortunately because of the X-windows, I'm limited to version 5.4.
>
> Any help would be most welcome.
>
> Regards,
> Ian
>
Re: Extended dilaog_pickfile [message #67098 is a reply to message #67091] Mon, 22 June 2009 12:20 Go to previous message
skymaxwell@gmail.com is currently offline  skymaxwell@gmail.com
Messages: 127
Registered: January 2007
Senior Member
Hello

I faced with same problem. I have a lot of files in subdirectories in
SatData directory. i pick SatData directory and IDL found all my files
in subdirectories. Filenames started by "img" string.
Here part of source
...
indir=DIALOG_PICKFILE(/DIRECTORY,PATH="E:\WORK\IDL_PROGZ
\SatData",TITLE="Input Dir")
IF (indir EQ '') THEN RETURN
files=FILE_SEARCH(indir,"img*",COUNT=count_files)
print,files
...

Hope it will usefull
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Avoiding a FOR loop in calculation of SPH potential energy
Next Topic: Re: IDL with touch screen (multitouch)

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

Current Time: Wed Oct 08 15:14:46 PDT 2025

Total time taken to generate the page: 0.00690 seconds