【发布时间】:2014-08-29 00:02:13
【问题描述】:
我正在尝试通过这样做来删除目录中的所有文件:
System.IO.File.Delete(directoriodestino_imagenes + @"\*.*");
在哪里,directoriodestino_imagenes = "C:\\dcm\\patients\\NAME_LASTNAME\\DCM\\"。
我明白了:
{"路径中有非法字符。"}
任何提示我可能做错了什么?
【问题讨论】:
-
引自在线参考:
path: The name of the file to be deleted. Wildcard characters are not supported.
标签: c# file-io invalid-characters