How To Get List Of File In Folder Then Get File Location

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi.
I want get list of all file in folder and get file location.
I have code for get list file
Dim di As New IO.DirectoryInfo("c:")
Dim list(1 to 100) Of String
Dim diar1 As IO.FileInfo() = di.GetFiles()
Dim dra As IO.FileInfo
For Each dra In diar1
list()=dra
Next
But i havent code of get file location.
Can do both get list file and get file location and assign in array of string.
Thanks,

View the full article
 
Back
Top