Re: Extended dilaog_pickfile [message #67089] |
Tue, 23 June 2009 05:16 |
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  |
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  |
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
|
|
|