/////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // chgcpy.CPP // // // Copyright (c)2001 Microsoft Corporation, All Rights Reserved // /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #define FILEBUFFERSIZE 1024*10 #include #include #include #include char gszSourceFiles[MAX_PATH]; char gszReplace[MAX_PATH]; char gszIgnore[MAX_PATH]; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// BOOL ParseCommandLine(int argc, char *argv[]) { BOOL fRc = TRUE; //============================================================================================ // // Loop through the command line and get all of the available arguments. // //============================================================================================ for(int i=1; i 0 && strlen(gszReplace) > 0 && strlen(gszIgnore) > 0 ) { //====================================================== // Generate the list of files to edit //====================================================== if( DoIt()) { nRc = 1; } } } else { printf( "Invalid command line.\n"); } return nRc; }