K
Keith R
I'm a newbie using vb.net express 2005.
I've been working on the following code snippet, trying to figure out how to
return characteristics of the found files (I believe the code itself is just
returning the string path/filename). Is there a way to work backward to get
the file information? I want to populate it into a database (after filtering
it) and am hoping to use a combination of the filesize and saved date as the
unique key (these are AVIs that have been downloaded from a digital camera,
so they should all have non-identical saved dates, and I'd add the filesize
just in case as a backup). I'm using the listbox just for testing, then I'll
figure out how to add the contents to my database (while avoiding adding
clips that already exist)
Dim ApexPath As String
Dim folderDialog As FolderBrowserDialog
folderDialog = New FolderBrowserDialog()
folderDialog.ShowDialog()
ApexPath = folderDialog.SelectedPath
For Each foundFile As String In My.Computer.FileSystem.GetFiles (ApexPath ,
True, "*.avi")
KeyPart1 = foundFile.Length 'isn't an actual property of foundfile!
ListBox1.Items.Add(foundFile)
Next
Thank you,
Keith
I've been working on the following code snippet, trying to figure out how to
return characteristics of the found files (I believe the code itself is just
returning the string path/filename). Is there a way to work backward to get
the file information? I want to populate it into a database (after filtering
it) and am hoping to use a combination of the filesize and saved date as the
unique key (these are AVIs that have been downloaded from a digital camera,
so they should all have non-identical saved dates, and I'd add the filesize
just in case as a backup). I'm using the listbox just for testing, then I'll
figure out how to add the contents to my database (while avoiding adding
clips that already exist)
Dim ApexPath As String
Dim folderDialog As FolderBrowserDialog
folderDialog = New FolderBrowserDialog()
folderDialog.ShowDialog()
ApexPath = folderDialog.SelectedPath
For Each foundFile As String In My.Computer.FileSystem.GetFiles (ApexPath ,
True, "*.avi")
KeyPart1 = foundFile.Length 'isn't an actual property of foundfile!
ListBox1.Items.Add(foundFile)
Next
Thank you,
Keith