How to bulk Modify file names

Source: Internet
Author: User

The download of TV dramas, cartoons and other file name prefixes are sometimes very long, can be simplified by some means. For example, the TXT file in the "D:shu" directory clears the name prefix, will "computer fault from getting started to proficient in the 10th Chapter → keyboard and mouse fault. txt" modified to "chapter 10th _ Keyboard and mouse troubleshooting. txt", operation steps below.

1. Enter "CMD" in "Run", open "command Prompt", enter "D:" Return, enter "Cdshu" return, enter "Diru*.txt/b/o:n>1.bat" return. Using Explorer, open the D:shu directory and arrange the files by name. Select all TXT files, right-click the first TXT file, rename to (1). txt, at which time all txt files are automatically renamed (1). txt, (2). txt ....

2. Open "1.bat" with Notepad, copy the file name, open the Excel program, paste the filename at the E1, enter "Ren" at the A1, enter a space at B1, D1, enter "(1.txt)" At C1, enter (2) txt at C2, and add a, B, C, The D column is filled down to the end; When column C is populated, C1, C2 are selected to generate the margin column, and the e column is replaced with NULL for "computer failure from getting started to mastering" (also equivalent to deletion), substituting "→" with "_".

3. Copy the form, open "1.bat" with Notepad, overwrite the original content, copy to a "tab", replace it, paste "tab" in "Find content", replace it with empty, save and exit.

4. Open "1.bat", you can bulk clear the prefix.

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.