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

Home » Public Forums » archive » filesearch doesn't find the same files as findfile on a networked drive (unencrypted)
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: FILESEARCH [message #56966 is a reply to message #36664] Sat, 24 November 2007 23:15 Go to previous messageGo to previous message
mkmvarma is currently offline  mkmvarma
Messages: 24
Registered: November 2007
Junior Member
On Nov 24, 4:44 pm, David Fanning <n...@dfanning.com> wrote:
> mkmva...@gmail.com writes:
>> I tried to find the the hdf files in a specified directory using
>> Filesearch and findfile. but idl could not find any?? can anybody help
>> me out?? i am just appending below what i had in my code
>
>> fname ='C:\Documents and Settings\Mahesh Varma\My Documents\osiris\'
>> result = FINDFILE('\fname\*.hdf');,[COUNT=num])
>> PRINT, FINDFILE('*.hdf')
>
> I think you should use FILE_SEARCH, since FINDFILE is
> obsolete. And you are not concatenating strings properly.
> You want something like this:
>
> fname ='C:\Documents and Settings\Mahesh Varma\My Documents\osiris\'
> files = FILE_SEARCH(fname + '*.hdf', COUNT=num)
> FOR j=0,num-1 DO Print, files[j]
>
> 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.")

Thanks David.... It worked.... thanks very much
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: FILESEARCH
Next Topic: How can i put in a IDLgrAxis non constant values ?

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

Current Time: Sun Oct 12 00:02:42 PDT 2025

Total time taken to generate the page: 1.36212 seconds