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

Home » Public Forums » archive » Another file_search problem
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
Another file_search problem [message #47623] Mon, 20 February 2006 01:06
Jacques.Basson is currently offline  Jacques.Basson
Messages: 1
Registered: February 2006
Junior Member
Hi all

Just another file_search / Windows problem that I came across and I
thought I'd warn people about. It seems that Windows (XP with NTFS at
least) ignores trailing dots on a directory, and for most cases ignores
them when performing file operations.

So if you create a directory called "C:\TES.T.\" and put a file called
"test.txt" in there, then the following functions are equivalent and
work just fine
openr, u, 'C:\TES.T.\test.txt', /get_lun
openr, u, 'C:\TES.T\text.txt', /get_lun
as do read_image, etc.

Unfortunately, file_search("C:\TES.T.\*") returns nothing, while
file_search("C:\TES.T\*") is OK. However, (as usual when file_search
fails you), findfile("C:\TES.T.\*") and findfile("C:\TES.T\*") both
work.

Oh, and just to make the problem a bit more obscure, you need the 1st
dot (located between the "S" and the "T" in this example) for this to
work...

Cheers,
Jacques
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Image proccesing programs
Next Topic: Re: Minimum area ellipse - quadratic optimisation?

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

Current Time: Wed Oct 08 13:16:23 PDT 2025

Total time taken to generate the page: 0.00708 seconds