使用DirectoryInfo类。
1、创建文件:
DirectoryInfo folder = new DirectoryInfo(Application.StartupPath + "\\WaferMap\\MAP\\MeasureMap\\123");
2、删除该文件:
DirectoryInfo folder = new DirectoryInfo(Application.StartupPath + "\\WaferMap\\MAP\\MeasureMap\\123");
folder.Delete();
原文:https://www.cnblogs.com/kaqiu/p/9292888.html