创建目录 File.createDirectoryCreates a new directory. Syntaxpublic static void createDirectory( String path )Parameterspath The path of the directory to create. 删除目录 File.removeDirectoryRemoves an existing empty directory. Syntaxpublic static void removeDirectory( String path )Parameterspath The path of the directory to remove.
File.createDirectoryCreates a new directory. Syntaxpublic static void createDirectory( String path )Parameterspath The path of the directory to create. 删除目录
File.removeDirectoryRemoves an existing empty directory. Syntaxpublic static void removeDirectory( String path )Parameterspath The path of the directory to remove.
如果目录下有文件可以直接删除吗?
DeleteFile("D:\\a.bat");创建文件的方法有很多种,举一个例子
CFile cfile;
BOOL ret = cfile.Open("D:\\test.exe", CFile::modeCreate);
cfile.Close ();还有CreateFile等多种方法。建立目录CreateDirectory