' Batch file Auto search replace insert Ver2.1
' Feiyun wrote, CSDN account: jspadmin,qq:33323489
' Personal website http://www.pifoo.com 蚍蜉 Chinese Station, Welcome to exchange links. This site provides free blog application registration.
' You can use or modify this code, but please keep the copyright information or links, thank you for using!
' If you have any questions or suggestions, please leave me a message http://www.pifoo.com/guestbook/
Click here to download-batch file Auto Search replace insert Ver1.0
Click here to download-batch file Auto Search replace insert Ver2.0
Http://www.pifoo.com/netos/UploadFiles/replace2.1.rar
Ver2.1 Update Description:
1, add only search for specific strings, do not modify the function
2, fixed V2.0 version of the backup problem
3, Fixed page coding problem
Ver2.0 Version Update Description:
1, the Ver1.0 version only to search for files under the specified folder, can not be recursive traversal of all subdirectories, this version to increase all subdirectories recursive traversal search (thank Geniuslau to make this recommendation)
2, increase the file before the backup function (thank Geniuslau to make this proposal)
3, modify the file read way, the original is the use of readline+ cycle, is changed to ReadAll, although the individual think readline efficiency is higher (if you encounter matching conditions can immediately jump out of the loop, do not read the entire file), but ReadAll looks more concise:), and, I find that ReadLine will change the format of document typesetting. The file open method originally uses OpenTextFile, is changed to OpenAsTextStream method (thanks bluedestiny to make the suggestion, and provides the reference code of the recursive subdirectory)
4, add user parameters to set up a form to facilitate ordinary user operation
5. Increase the function of document classification and statistic
6, increase the server script timeout to prevent the execution time is too long and failed
7, to be improved: The function call is more confusing, ready to press Geniuslau, bluedestiny two friends proposed, encapsulated into classes, and add File suffix list function
8, if you find in the use of what bugs or inappropriate or need to improve, add features, please contact me qq:33323489