Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution to the error of ren command caused by batch renaming

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the batch renaming ren command error solution, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor with you to understand.

Batch renaming ren command error solution: first create a new text document, paste the ren command generated in Excel into it; then save as, first select the type to all files, and then rename to [ren.bat]; finally double-click to execute [ren.bat] file.

This article operating environment: Windows7 system, Dell G3 computer.

The solution to the ren command error caused by batch renaming:

1. Get all the file names that need to be renamed as follows:

Right-click ① shift+ to open a command line window under the current folder

② enter [dir / b > OldName.txt], which can be pasted to the command line with the right mouse button.

2. Enter the new and old file names in Excel, and do the following:

① create a new Excel file, and fill in all the names in the OldName.txt in the first column

Fill in the corresponding new name in the second column of ②, either manually or by using the Excel function. For example, to sort files numerically, you can fill in the number in the G column, make B1 = G1 & "& A1, and drag down to fill it.

3. Batch generate ren commands in Excel as follows:

① enter English double quotation marks in column C

② makes E1 = "ren" & C1 / A1 / C1 & "& C1&B1&C1

③ drag down to complete the fill

4. Execute multiple generated commands through the batch file, and operate under the current folder:

① creates a new text document and pastes the ren commands generated in Excel

Save ② as: first select the type to all files, and then rename it to ren.bat

③ double-click to execute ren.bat file

5. Comparison before and after batch renaming

Thank you for reading this article carefully. I hope the article "the solution to ren command errors caused by batch renaming" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report