...
...
...
...
1.判斷文件夾是否存在 if (!Directory.Exists(sPath)) { Directory.CreateDirectory(sPath); } //從指定路徑中刪除空目錄。 2.判斷文件是否存在 ...
void CWireLessDlg::CreatePakcetFile(){ CString strFolderPath; strFolderPath = _T("D:\\無線通信板報文存儲文件夾"); if(!PathIsDirectory(strFolderPath))//判斷路徑是否存在 ...
DirectoryInfo directory = new DirectoryInfo(@"D:\0001\" + year + @"\" + time.Substring(4,2) + @"\" + LocaleId + @"\"); if (!directory.Exists)//不存在 ...