1. 程式人生 > >創建、刪除文件

創建、刪除文件

tar operator key sta UNC delet pat ati ica

使用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();

創建、刪除文件