How would I write a recursive function to scan the Temp Files on a computer and list all the files & folders to a ListView?
MaddTechwf
0
Junior Poster in Training
Recommended Answers
Jump to PostThis will return an array of all file names in a specified directory including sub directories.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim FileNames As String() = GetDirectoryFileNames(System.IO.Path.GetTempPath) End Sub ''' <summary> '''Gets the names of all files in the specified …
Jump to PostThat doesn't actually work. It won't search sub folders.
I modified the code I posted to do what you want.
This will list each directory and all the items in the directory before listing the next directory.
You shouldn't need to recursively delete items. You should be …
Jump to PostHeres one question:
How would I write a recursive function to scan the Temp Files on a computer and list all the files & folders to a ListView?Heres another:
How would I include folders that are inside the TEMP location?We'll just let this one go un-solved.
All 12 Replies
Huntondoom
battlex2010
0
Newbie Poster
Huntondoom
MaddTechwf
0
Junior Poster in Training
Huntondoom
Unhnd_Exception
MaddTechwf
0
Junior Poster in Training
Unhnd_Exception
MaddTechwf
0
Junior Poster in Training
Unhnd_Exception
MaddTechwf
0
Junior Poster in Training
Unhnd_Exception
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.