原文:C#判斷是否有某文件夾存在

DirectoryInfo directory new DirectoryInfo D: year time.Substring , LocaleId if directory.Exists 不存在 directory.Create ...

2017-01-23 13:15 0 5111 推薦指數:

查看詳情

C#判斷文件文件夾是否存在

1.判斷文件夾是否存在   if (!Directory.Exists(sPath))   {     Directory.CreateDirectory(sPath);   }   //從指定路徑中刪除空目錄。 2.判斷文件是否存在 ...

Thu Jan 21 23:58:00 CST 2021 0 3303
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM