I'm beginner in C#, and I'm trying to search for files in subfolders and show them in a listbox. I have already tried this:
List<string> search = Directory.GetFiles("@C:\\", "*.*", SearchOption.AllDirectories).ToList();
A message from Visual Studio appears: An unhandled exception of type 'System.NotSupportedException' ocurred in mscorlib.dll.
What should I do?
Already grateful!