I'm trying to delete all files in a directory by doing this:
System.IO.File.Delete(directoriodestino_imagenes + @"\*.*");
Where, directoriodestino_imagenes = "C:\\dcm\\patients\\NAME_LASTNAME\\DCM\\"
.
And I get this:
{"Illegal characters in path."}
Any hints what I may be doing wrong?