{
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 placeCodePudding user response:
Point around which a few is not the past, and USES Windows