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

Home » Public Forums » archive » Re: Find files in windows, search subdirectories
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: Find files in windows, search subdirectories [message #41802] Sun, 28 November 2004 12:00
luxx is currently offline  luxx
Messages: 3
Registered: October 2004
Junior Member
Thank you very much Chris, that was easy!


--
luciano.

"Christopher Lee" <cl@127.0.0.1> schrieb im Newsbeitrag
news:20041128.182743.1960709859.30829@moriarty.atm.ox.ac.uk. ..
> In article <2a162acf.0411280932.4691e311@posting.google.com>, "Luciano"
> <luxx@softhome.net> wrote:
>
>
>> hi,
>> How do I find all the *.txt files, recursively inside all the
>> subddirectories from the path given ? In windows. I can only find them
>> for the base directory, using file_search, I cannot get it to search
>> inside subdirectories. The help on file_search sucks, I couldn't
>> descifer how to do it. I' m using idl 6.0, win xp.
>> thanks!
>
> Hi,
>
> Use the second form of file_search, i.e
>
> result=file_search(directory_specification, recursive_pattern)
>
> so, to find all *.txt files in the current directory and any
> sub-directories
>
> result=file_search('.', '*.txt')
>
> That's for Unix filesystems, you'll need to specify the directory
> properly for a Windows systems, I have no idea what '.' would translate
> to, possibly your home directory? use the full path 'c:\blah\'....
>
> Chris.
Re: Find files in windows, search subdirectories [message #41803 is a reply to message #41802] Sun, 28 November 2004 10:27 Go to previous message
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <2a162acf.0411280932.4691e311@posting.google.com>, "Luciano"
<luxx@softhome.net> wrote:


> hi,
> How do I find all the *.txt files, recursively inside all the
> subddirectories from the path given ? In windows. I can only find them
> for the base directory, using file_search, I cannot get it to search
> inside subdirectories. The help on file_search sucks, I couldn't
> descifer how to do it. I' m using idl 6.0, win xp.
> thanks!

Hi,

Use the second form of file_search, i.e

result=file_search(directory_specification, recursive_pattern)

so, to find all *.txt files in the current directory and any
sub-directories

result=file_search('.', '*.txt')

That's for Unix filesystems, you'll need to specify the directory
properly for a Windows systems, I have no idea what '.' would translate
to, possibly your home directory? use the full path 'c:\blah\'....

Chris.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Find files in windows, search subdirectories
Next Topic: Radio Buttons OnButtonPress Bug

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

Current Time: Wed Oct 08 16:00:49 PDT 2025

Total time taken to generate the page: 0.00537 seconds