Another file_search problem [message #47623] |
Mon, 20 February 2006 01:06 |
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
|
|
|