I have folder which has all the files and the folder can have as much files inside as possible so I have created the function which gets all the files inside this folder and populate it on a listbox so now the problem is that it shows with the path to the file on the listbox which is what I want to get rid off. Here is my function code:
Public Function Scan()
Dim ScanFolder() As String
ScanFolder = Directory.GetFiles("C:\examplefolder\", "." , SearchOption.AllDirectories.GetHashCode)
For Each dFile As String In ScanFolder
So the above code displays the full path to the folder but what I want is to display only the names only. Anyone how can help me in this. Thank you.
Sorry for not formatting the codes I'm using a mobile.