Thanks both for replying I tried the 2nd coding and this line seems to have error:
Dim FileList As List(Of String) = IO.Directory.GetFiles("C:\").ToList
As It doesnt seems to have ToList method.