Batch file Auto Search replace insert ver2.1_ application tips

Source: Internet
Author: User
Tags readline
' 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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.