Home > Back-end >  File related applications, there is a problem
File related applications, there is a problem

Time:10-22

Int main ()
{
String path="D:/";
_ string prefix="1";
WIN32_FIND_DATA findFileData;
HANDLE hFile=FindFirstFile ((path + "*"). C_str (), & amp; FindFileData);

Do {
if(! (findFileData dwFileAttributes & amp; FILE_ATTRIBUTE_DIRECTORY)) {
String fileNmae=findFileData. CFileName;
MoveFile ((path + fileNmae). C_str (), (prefix path + + fileNmae) c_str ());
}
} while (FindNextFile (hFile, & amp; FindFileData));

return 0;
}
There are several translation not the past, to help look at ah, thank you

CodePudding user response:

LZ send the wrong place

CodePudding user response:

Point around which a few is not the past, and USES Windows
  • Related