WININET.DLL problem (BUG!)

Hi, I am trying to use FTP functionality calling FtpFindFirstFile & InternetFindNextFile functions. With some directories that I list everything works fine. However, with other directories instead of just the filename, I get entire long listing format string as the filename for each file, e.g. I get this as a filename: <-rwxrwxrwx+ 1 None 34359 Feb 22 18:21 install.log> instead of just <install.log>. This started happening on WindowsXP (so I guess WININET.DLL for WinXP is broken). Does anyone know how to fix this? There seems to be nothing special about the directories and files that work and those that do not (I checked permissions and so on). Moreover, FTP servers show things properly except for those that use WININET.DLL...
[758 byte] By [sashka76] at [2007-12-16]
# 1
I don't know much about that function. But here's a piece of code that will return the file name according to how the string is formatted.



Dim str As String = "<-rwxrwxrwx+ 1 None 34359 Feb 22 18:21 install.log>"
Dim str2 As String()

str2 = str.Split(New Char() {" "})

'str2= install.log>
'Trim away the extra >
With str2(str2.GetUpperBound(0))
str = .Substring(0, .Length - 1)
End With
MsgBox(str)

Dustin.

Dustin_H at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2
I want to use the API :-).
My question now becomes this: what format of file listing does WININET.DLL accept? I think some files are not listed the way it accepts and the thing bites the dust...
sashka76 at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...