How does the computer batch modify file names?

Source: Internet
Author: User

Usually we use a cell phone or camera to take a bunch of photos copied to the computer, the name of the picture is usually random confusion, if you want to standardize the file name, you will not go to one to modify the file name? In fact, there is no need for such trouble at all, Today, the computer Pepsi small make up to teach you a lot of quick changes to the photo file name and add prefix method, the method is as follows.

  How do I bulk modify file names?

First, put all the photo files in a folder, and then hold down the keyboard Ctrl + a combination of shortcut keys to select all photo files, all selected, and then press the F2 key for batch renaming, and enter a new name, such as "Geek Youth" as shown below.

Ps. Notebook users, if you encounter pressing the F2 key can not name the folder, please also press FN+F2 combination shortcut keys.

Second, after the input is completed, press ENTER return key to confirm, the system will batch to all current files for you entered the full name, and will automatically add (1), (2), (3), (4) ... Numeric sequence number, to avoid all file names are the same as the following figure.

  Add prefix method to photo file name in bulk

If you want to keep the original file name of the photo file, you just need to bulk add the file prefix how do you do it? The following small series to teach you a trick.

1, first in the need to batch modify the file name of the photo folder to create a new text document, and then paste the following code in:

"@echo off for/f" delims= "%%f" (' dir/b/s/a-d *.* ') does (if not "%%~nxf" = "%0" ren "%%f" "Geek Youth%%~nxf") "

When you are finished, save the text file as a and change the format to bat, as shown in the figure.

Note: The Code of the Geek Youth, is the need to add a lot of file prefixes, you can fill in accordance with their own needs.

2, finally click to open this bat format file, run once, you can put the folder all photo file name prefix with the Geek youth prefix, the effect is as above figure.

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.