This tag is about the renaming of large batches of files.

learn more… | top users | synonyms

36
votes
11answers
70k views

Is there a way to batch rename files to lowercase?

I need a way to rename all files in folders and subfolders to lowercase. I'd like to know if there is a way to do that using only windows (XP or 7)
12
votes
4answers
22k views

Add text to end of filename (but before extension) using batch file

I have a list of files which are in the format on the left. I want to append a string to each file name, but before the extension, as shown: File 1.txt -> File 1 version 1.txt File 2.txt -> ...
10
votes
4answers
3k views

How to recursively rename files/folders to make their names Windows-friendly?

I have a bunch of files on a Ubuntu box, which have various characters in their filenames that Windows doesn't accept (mostly ":" and "*", but possibly others). What's the simplest way to get these ...
9
votes
5answers
25k views

How to rename multiple files in multiple folders with one command

We want to rename our *.html files to *.php but (sadly enough) have not enough knowledge to do it with a cmd prompt command and/or batch file. The problem is that each file is in separate folder – ...
7
votes
3answers
7k views

Mass Remove File Prefix on a Mac?

How do I mass remove file prefixes in a Mac? For example, inside my folder, I have the following files: img_sometext1.jpg img_sometext2.jpg ... img_sometext10.jpg How do I remove img_?
7
votes
2answers
4k views

Batch rename files in Linux

How I can rename images with 'rename' command from "something_full.jpg" to "something_500.jpg" recursive?
6
votes
7answers
2k views

How to bulk rename numbered files? [duplicate]

I have two folders in Windows 8.1. The first folder, a, has 50 .jpg files numbered 01.jpg through to 50.jpg. My second folder, b, has the same amount of .jpg files named in the exact same manner. My ...
6
votes
5answers
23k views

How to replace a single character in Windows filenames using a batch file?

I have a Windows Server 2003 server that has a whole bunch of filenames that need renaming. Basically, I just need all - (hyphens) replaced with _ (underscores), no matter where they are in the ...
4
votes
2answers
9k views

Batch removal of special characters from file names in Linux

I am seeking to remove all special characters from several files' worth of downloaded .pdfs, and came across exactly the solution I was looking for, albeit in an OS X environment: function to ...
4
votes
3answers
5k views

Automatic PDF renaming based on title

I have thousands of scientific PDFs that i need to rename, many do not have metadata. I would like to be able to create an automator action that could open a folder then open each PDF, copy the title ...
4
votes
2answers
2k views

install rename command in cygwin

In linux exist the rename command, for rename a set of files with regular expresions. rename 's/prefix_//' *.jpg if I search in the cygwin package I find the renameutils package, but this don't ...
4
votes
1answer
2k views

remove numbers from filenames in Mac OS X

I have a directory full of files with names in this format (with numbers as the start of each filename): 102_file.txt 104_list.txt 242_another_file.txt I would like to rename them as follows (i.e. ...
4
votes
2answers
1k views

Bulk Rename Utility

I have been using Bulk Rename utility and I have been having some issues. I have some files named things like 664722.pdf,664762.pdf, and 664722-1.pdf that I need to rename. The problem is I have to ...
3
votes
3answers
904 views

Linux GUI Regular Expression File Renamer (with substitution)

I have folder with several hundred files named like this: 010203.txt I want to rearrange the file names so that last two digits are moved to the front like this: 030102.txt I want to avoid writing ...
3
votes
1answer
8k views

Windows XP: how do I add 00 in front of every file via command prompt?

Windows XP: how do I add 00 in front of every file via command prompt? I tried REN * 00*.gif but it doesn't work.
3
votes
2answers
222 views

How do I signify repetition in a ZMV regex?

I'm trying to manually pull the digests off of Rails assets (don't ask). I was directed to ZMV for easy regex-based find/replace. But the normal {32} syntax for specifying an amount of repetition does ...
3
votes
1answer
91 views

Building a DOS batch script to rename files

I'm currently stuck on an issue with a DOS batch script I’ve been working on, and I need help renaming the files. Here is the renaming scheme I’m searching for: Original filenames ...
3
votes
3answers
85 views

recursive batch rename files

I have audio library that has artworks in every folder and the names are: Cover.PNG, Cover.png, Cover.JPEG, Cover.jpeg, Cover.JPG, Cover.jpg… How to recursively find all those files and rename them ...
3
votes
2answers
2k views

Mass file renaming in Bash but keeping a section of the file name

I have a large number of .jpg file that have extraneous data ahead of a file id that i need to have removed to better set up my file structure for a later project. How can I do a batch rename in ...
3
votes
1answer
251 views

Bulk rename files to name of parent folder

I have a large (aprox. 150,000) tiff files which all have the same filename. They are unique because of the directory structure they are held in. I would like to bulk rename the tiff files so they ...
3
votes
1answer
1k views

How can I bulk move and rename images/videos in a folder

All my mobile device's photos and videos are backed up to the cloud and synchronized to my laptop using Dropbox's "Camera Upload" feature. All the photos and videos get added to the "camera uploads" ...
3
votes
2answers
5k views

How do I remove non-ascii characters from filenames?

I have several files with names containing various Unicode characters. I'd like to rename them to only contain the "printable" ASCII characters (32-126). E.g, Läsmig.txt //Before ...
3
votes
1answer
378 views

How to find a file and move it into the directory it was found in

I am trying to rename files in sub directories using xargs by running the following command: find . -name oldfile.txt -print0 | xargs -n 1 -0 -I % mv % newfile.txt The problem is that the file gets ...
3
votes
3answers
4k views

Add folder name to beginning of filename

I have a directory structure as below: Folder > SubFolder1 > FileName1.abc > Filename2.abc > ............. > SubFolder2 > FileName11.abc > Filename12.abc ...
3
votes
2answers
487 views

Increment file number using zmv

I have a set of files that are named in the vein of "some_file-nameN", where N is a number starting at 1, incrementing, and ending somewhere between 10 and 30. I now need to insert a file at the ...
3
votes
2answers
334 views

Linux: Howto get same output filenames of batch conversion with different extension?

I am using Timidity to convert a lot of midi files to mp3. I was wondering if there is a standard way of specifying a output pattern so that it converts all the *.mid files to /path/*.wav I ask this ...
3
votes
1answer
933 views

How can you rename hundreds of PDF files with information found in the file?

I scan forms at work into PDF files and then use Nitro to make them searchable. I need to come up with a way to read the 1st 50 characters of the file which is always in the same place in the ...
3
votes
0answers
25 views

Batch rename Chrome bookmarks

How do you batch rename lots of chrome bookmarks? For example, 1. "Introduction" is replaced with "Intro"? 2. "Google" is replaced with "G"?
3
votes
2answers
97 views

How to add a prefix to all files and folders in a folder? (windows)

The following command only changes the name of the files but not the folders. for %a in (*) do ren "%a" "00_%a"
2
votes
2answers
5k views

Batch Rename (remove specific character) Files

I have about 3500 recorded phone calls and they are all labelled yyyy_mm_dd_hh_mm_mobilenumber.3gp I want to remove the underscore from the name so searching through them is easier How would I do ...
2
votes
2answers
221 views

How to move files into corresponding folders which have the same name?

Example scenario: I've multiple files ending with .torrent and I would like to move them into folders which has the same name. For example given the following files: abc.torrent def.torrent some ...
2
votes
2answers
10k views

How to bulk rename audio files so that the file name matches the title metadata (preferably using Foobar2000)?

I have some audio files for which I used Foobar2000 to get the proper tags (Title, Artist, Album, etc), so now they have their proper titles when loaded in Foobar and other players, but they still do ...
2
votes
1answer
1k views

Add suffix to multiple folder names, keeping the original name

Basically I have a number of folders all called different names. I would like to add a suffix to the end of each folder and within Windows (no 3rd party software). For example: Mercury, Venus, Earth, ...
2
votes
1answer
32 views

How can I swap patterns in filenames?

I have a folder of files with names like thing.y.big.png thing.y.small.png thing.xxx.big.png thing.xxx.small.png and I would like to rename them so that the 2nd and 3rd "fields" are swapped. In the ...
2
votes
3answers
4k views

Batch change file extensions in Mac OS X?

I used wget to download a website into a folder. When files have the same names, wget stores the new one as name.extension.# Now I have hundreds of files like 1.jpg, 1.jpg.1, 1.jpg.2, etc. How can I ...
2
votes
1answer
112 views

Replace files with others from other folder matched by first token in filename

Lets say I have two folders: ls /A/ 01 - IncorrectName.flac 02 - otherincorrect.flac ls /B/ 01 - CorectName.flac 02 - Othercorrect.flac How would I move the files from dir A to B, ...
2
votes
3answers
18k views

How to loop through folders and rename extensions in a batch file?

Selecting a single folder I could run ren *.jpeg *.png I have multiple folders. I want to create a batch file that will loop through all the folders and will rename the files within it. For ...
2
votes
1answer
74 views

Add 1 character at the start of each filename

I want to put 1 character at start of each jpg filename. I have made this batch file: for %%A in (*.jpg) do ren "%%~A" s"%%~nA%%~xA" This works almost perfectly, but the first file is processed ...
2
votes
3answers
10k views

How do you quickly remove underscores from folder names?

What is the easiest and fastest way to remove underscores from folder names in Windows? Running a Google search I found a VB script that automatically removes all underscores from file names in the ...
2
votes
2answers
684 views

Using mmv, how to strip folder names of a “+”

I have a bunch of folders with + instead of spaces. I tried mmv '*+*' '#1_#2' as well as mmv '*\+*' '#1_#2' with the result + -> #1_#2 : no match. and + -> #1_#2 : no match. ...
2
votes
1answer
60 views

Batch Script to Bulk Rename Files - Strip off Parenthesis and all Characters between

I wish to rename a group of files in a particular folder in such a way that everything between and including the parenthesis is erased. For example a file with the name of: "78 Tax Tips for ...
2
votes
2answers
769 views

Windows script to run as a batch to replace character in list of file names

I have 4 files as below: C:\Documents and Settings\vm\AC R\test JE.BOS.20130516.CSV JE.BES.20130516.CSV KFROPN.SAVEFILE.CSV KFBAD.SAVEFILE.CSV I have to replace "." in the filename with "-". But ...
2
votes
1answer
2k views

How to rename bulk title tag in mp3 ID3 files

I have a few folders containing mp3 files (folder names CD#1 CD#2) with a few files in each folder. I renamed the Album name and changed the track number so my ipod should store it as one long ...
2
votes
1answer
106 views

Windows Batch File Rename to Replace %20 Characters with _

I have a folder with a lot of files that I need to rename. The original format for example is ABC%20DEF%20GHI%20JKL.xyz. What I need to do is to replace each %20 with _. So essentially I'm parsing out ...
2
votes
2answers
513 views

Renaming .jpg files in subdirectories without changing the creation date (on a MAC)

I have a bunch of JPEG files with exactly the same name (i.e. "orig.jpg") each in a seperate subdirectory. Each subdirectory has a unique name (e.g. xplmz3nc5n, tyrn5m6ktv, etc...). I want to rename ...
2
votes
2answers
2k views

rename file with zmv

I just discovered zmv this morning. To test it i have created a few files. test1.txt test2.txt test3.txt I'm trying to rename them with zmv I'd like to get this output: test-1.txt test-2.txt ...
2
votes
1answer
66 views

Finding and renaming files

I have about 1000 files containing the character * in the name. I need to find these files and replace the * with a -. I am working with HP UX v11. I am using the following command find . -type f ...
2
votes
2answers
537 views

Find and remove common words in filenames automatically

I'm using Mac OS 10.8.4, and want to do some batch renaming using the Terminal which is a bash shell I think. I have a large number of folders of large number of files. The filenames have words ...
2
votes
1answer
249 views

Need assistance making a batch file for renaming files in separate folders

Ok, here's one for you. I'm trying to use a batch file to rename a bunch of files, but none of them are in the same folder as the batch file itself. The command prompt keeps telling me that the ...
2
votes
1answer
2k views

batch-rename filenames with numbers to sort alphabetically

I want to batch-rename files containing numbers, padding the numbers with zeroes. The goal is to sort numbered sets of files alphabetically in the correct order in any application. In a set of files ...