Just a quick answer, in VB.net there is no VBnullChar call
ControlChars.NullChar is listed as the Equivalent. I have never used either call sorry I cannot help any more but maybe it will point you in the right direction
Declare Function FindFirstFile Lib "kernel32" Alias "FindFirstFileA" (ByVal lpFileName As String, ByRef lpFindFileData As WIN32_FIND_DATA) As Integer
Make sure the WIN32_FIND_DATA is set to an instance by creating a sub new() for it and calling it.
Dim wfd As New WIN32_FIND_DATA
if you need more help. seanrdittmar at hotmail.com
Hey thanx, that's pretty good...but would be good to know, HOW MANY Files are in that folder (path) because I need to display them in a ListView...and I think that only works with this:
for i = 0 To NumberOfFiles
ListView1.Items.Add(files(i))
next
works perfectly...but, how can I display the fileinfo in another column ??? the filenames are all displayed in the first column and I need to display the fileinfo in another one...
As far as the file attributes, you can use something like myFile.LastWriteTime.Date Almost all attributes are direct properties of the FileInfo variable.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.