Batch Rename and remove the blind parentheses

Source: Internet
Author: User

Batch Rename and rename the unpleasing parentheses, but they are not pleasing to the eye. I was still prepared to see how to compile a batch rename batch. Later I thought that as long as I had to edit a batch of www.2cto.com without parentheses, I would first use the batch rename provided by the system, it's not enough to use the batch processing with the parentheses removed ~~ So the following is the batch processing content of the patchwork: program code @ Echo Off & SetLocal enabledelayedexpansion for % a in (*) do (set "name = % a" set "name =! Name =! "Set" name =! Name =! "Ren" % ""! Name! ") Exit to copy the above content to notepad, suffix changed to bat, put in the folder to change the name, double-click, you can www.2cto.com ~~~ Well, although it's something non-professional, it has been tested. Please feel free to use it ~~~~ Note: This Batch Processing removes 'spaces + ('and') 'from the file name. If there is a 'space + (' or ') to be retained ') 'Please ignore the tips that the last pasting system comes with batch rename, which seems easy to ignore: As we all know, winxp comes with the batch rename function, as long as you select a bunch of files and select the first file, rename (rename the shortcut key to F2). After modification, other files are automatically modified. 1. if the name of the first file is changed to 'area of the name that does not need to be changed + space + (+ number +, you can get the name that increments from the input number. A negative number such as '-1' is also valid. 2. the numbers changed in the name are incrementing in the order currently displayed. They can be first arranged in the required order (for example, you can right-click the chart icon by modification time, name, or type, or manually drag), and then rename them in batches to sort the numbers in the named names in the desired order. I hope this will help the recipient who doesn't want to install special software or who is not satisfied with the order of the ACDSee columns, I was reminded that I always felt shy. I added the batch processing that changed the file name in the subfile together: program code @ Echo Off & SetLocal enabledelayedexpansion for/r % a in (*) do (set name = % ~ Nxa set "name =! Name =! "Set" name =! Name =! "Ren" % ""! Name! ") Exit is helpful ~~ The following batch operation renames all jpg files in the current folder in batches. The code @ echo off for/f "delims =" % I in ('dir/B *. jpg ') do call: ss % I goto: eof: ss set var = % 1 set num = % var :~ 0, 8% ren % var % w.num=.jpg goto: eof

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.