#include #include #include #include #include using namespace std; int oldNamesCount; int newNamesCount; int main () { char newFileName[256]; char oldFileName[256]; // char suffix[21]; WIN32_FIND_DATA FindFileData; HANDLE hFind = INVALID_HANDLE_VALUE; char DirSpec[5]= "."; // directory specification cout<<"\n"; strncat(DirSpec, "\\*", 3); hFind = FindFirstFile(DirSpec, &FindFileData); int fileOutputCount = 0; ofstream a_file ( "oldnames.txt" ); if (a_file.is_open() ) { while(FindNextFile(hFind, &FindFileData) != 0) { ++fileOutputCount; if (fileOutputCount > 1 ) { if (!( strcmp( FindFileData.cFileName , "renamer.exe" ) == 0)) if (!( strcmp( FindFileData.cFileName , "oldnames.txt" ) == 0)) if (!( strcmp( FindFileData.cFileName , "index.txt" ) == 0)) a_file<