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

learn more… | top users | synonyms

0
votes
1answer
11 views

Bulk rename files based on the first line of their contents?

I have a folder full of .java files, which I wish to rename. I want to rename the files with the first line of the contents of that file, with suffixes if the first line is same for two or more files?...
2
votes
3answers
32 views

Windows 7 command to add a leading zero to a batch of filenames

Having trouble getting the correct command syntax. We need to add a leading zero to a batch of files in a directory on a regular basis. I cannot download and install a software item to do so. The ...
-1
votes
0answers
27 views

Bulk renaming of files in window which matches a certain expression [on hold]

I want to rename all files in a folder in Windows 7. All files which have the last character of the filename as 5, the last character must be replaced with 3. I used the command rename *5.abc *3.abc ...
0
votes
1answer
37 views

How to move multiple file names?

At work I had to rename 650 files. Turns out I skipped one file in the middle. So I added it, but now I have to take the names from subsequent files to the one I added and move them all up 1 "slot". ...
0
votes
1answer
22 views

Need to rename .rtf files to match the contents of each file

I need to split, rename and change about 8000 files for a charity that I do work for. My question is if there is a program or code in Windows that I can use to change the file names to match the donor ...
1
vote
2answers
3k views

Cut a part from a filename (windows batch)

I got files named like this: cam1(word1 word2 wordN) (24-04-2012 00-11-13).mpg cam2(word1 word2 wordN) (24-04-2012 00-11-13).mpg cam3(word1 word2 wordN) (24-04-2012 00-11-13).mpg Need to cut (word1 ...
2
votes
1answer
17 views

Swapping characters within filename in a windows batch file

I have a folder with picture files. Filename structure is ddmmyy2222.png where dd=day, mm=month and yy=year. I'm trying to rename them according to the structure yyyymmdd.png like this: 120516222....
37
votes
11answers
73k 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)
0
votes
0answers
40 views

Looking to rename large amount of files using bat script

I'm still pretty new to the use of powershell, scripts, and the like, so I'm sorry that I don't have some form of script to start with. All I have is the specifics on my problem. I have a large ...
0
votes
3answers
532 views

How to rename file using CMD “Track ?.mp3” to “T00?.mp3”

I have multiple mp3 file like this: Track [number of track].mp3 eg. Track 1.mp3 - Track 11.mp3 I want to rename them to: T00[number of track] eg. T001.mp3 - T011.mp3 I have tried to rename 1-9 ...
0
votes
1answer
38 views

Match duplicate images by content and rename them (to the name of the duplicate)

I have 2 folders with over 5.000 photos each: Folder 1: the original files in good quality but with human readable names (e.g. saigon_motorcycle_traffic.jpg) Folder 2: the same files in really bad ...
1
vote
4answers
47 views

Batch Renaming on a file share

We currently have a CIFS share hosted from a SAN device and are planning to move toward a case management system. The issue I'm having is a lot of the various files in our file share end with a ...
1
vote
0answers
66 views

Renaming a pdf file (scanned document) using OCR. It should read 3 zones and rename accordingly. e.g. Streetname_LastName_Date.pdf [closed]

I am running into trouble with tons of paperwork. I want to have it digitalized in order to simplify search and therefore cut down a huge amount of time spent on looking though the paperwork. It is ...
3
votes
2answers
505 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 start....
0
votes
1answer
17 views

Cygwin unix-utils version of rename not functioning as it should

I'm trying to use the rename function, supplied as part of cygwin, unix-utils ( Mar22 2015), and it does not function as advertised. All the examples I've seen indicate this to be the syntax: rename ...
0
votes
1answer
33 views

Rename folder on remote server

I am calling a .bat file which contains the following command net use \\128.545.k.k\E_Drive /user:Username psw to connect to a remote server. I would like to rename a folder on the remote server i ...
1
vote
1answer
60 views

Remove a part of a list of names

I have some files and each files have distinct name but all of them have the same "-statement" at the end like this: flower-statement.mp3 leave-statement.mp3 ball-statement.mp3 goal-statement.mp3 ...
3
votes
0answers
33 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"?
2
votes
1answer
161 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
1answer
70 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 ...
0
votes
1answer
33 views

How do I remove the some parts of a file name for many files in Windows 7 using batch script? [duplicate]

I have some jsp file which need to rename. it has _h5 prefix. SO i need to remove that _h5 and make the file. ex: Account_h5.jsp to Account.jsp
9
votes
5answers
26k 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 – ...
3
votes
2answers
207 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"
0
votes
1answer
22 views

Regex directory renaming

I'm not great with regex and can't figure out why this is selecting the next character after the - /[\-][^ - ]/g with that, it selects - and the following character. I want to select the dash ...
3
votes
1answer
107 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 ...
0
votes
1answer
98 views

Bulk rename .jpeg to .jpg

I have over 100,000 images in a complicated folder structure similar to the one below: ├── folder1 │ ├── 0001.jpeg │ └── 0002.jpeg ├── folder2 │ ├── 0001.jpeg │ └── 0002.jpeg ├── folder3 │ ...
3
votes
3answers
116 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 ...
-1
votes
1answer
26 views

Post fix file name with SML on windows using command prompt [duplicate]

I have GUID based Image files such as ff568205-e82c-4be8-aca8-18f40ec64e5a.PNG 1f91e4e9-c163-4f28-acbc-dbb7693ef2e5.JPG I have thousands of images folder and i need to rename all these file and ...
2
votes
1answer
82 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 ...
12
votes
4answers
24k 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 -> ...
2
votes
2answers
254 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 ...
3
votes
1answer
2k 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
3answers
5k 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 ...
0
votes
0answers
26 views

Most efficient way to automatically name photos according to a naming convention?

I am a solar site assessor and am subcontracting for a company that uses a specific naming convention for all photographs taken at sites. I'm wondering what would be the best way to efficiently ...
1
vote
4answers
351 views

add “text” to end of multiple filenames

Using the code below I add text to end of file names which are: 1.mp3 2.mp3 and should be: 1text.mp3 2text.mp3 but it changed to: 1.mp3text 2.mp3text Code: @ECHO ON FOR %%A IN ("C:\Users\...
1
vote
2answers
3k views

Batch script to remove # from a file name (only in a specific directory)

I'm looking for a script to remove the # character out of any file names in a specific directory (PDF documents). I've been looking at some similar examples, but it's all a bit confusing!
4
votes
2answers
10k 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 ...
0
votes
3answers
32 views

Selectively modify file names

I have a folder containing a large number (over 1500) ttf files many, not all, of which have somehow been incorrectly named. e.g. arialttf instead of arial.ttf. Is there a shell command I could use ...
0
votes
1answer
30 views

text editor-style renaming of filenames in directory

How can I edit the names of files in a directory as though I were editing the text of a file using a text editor? I feel like I've seen this demoed in a video, perhaps using some Vim plugin or ...
0
votes
1answer
44 views

remove substring from filenames in subdirectories in mac

I have a backup from windows 8 file history that added timestamp to my files in all subdirectories. as the following _sites (2014_08_04 20_32_19 UTC).extension I need to remove the whole substring to ...
0
votes
1answer
157 views

Mass changing Links in OneNote 2010

I am using OneNote extensively for my work. For example one part of my work is reviewing incoming documents. I do an initial review and then get more specific reviews from members of my team. All this ...
0
votes
1answer
157 views

Wildcard in rename and robocopy command into batch file

What I am attempting to do is automate some work I do daily. What I would like to happen is a prompt saying What is your name? Then use that answer as a variable to be used in different commands like ...
1
vote
2answers
279 views

Rename JPEGs by adding a prefix according to date taken

I have a folder with pictures taken with different cameras and all these pictures have a correct DateTimeOriginal EXIF tag set. Suppose a list of files like this: 20150831_153712.jpg IMG_5246.JPG ...
0
votes
1answer
2k views

How to batch add leading zero to fix order of # filenames? (not experienced with code) [duplicate]

Possible Duplicate: How can I mass rename files from the command line or using a 3rd party tool? The title says it all. The problem is that the first nine files of a couple of hundred are ...
0
votes
0answers
287 views

Easiest way to rename DICOM files

I have got DICOM patients that have an attribute Patient's Name (0010,0010) I do not like. I have a tool to change attributes of each DICOM files but that tool cannot iterate over directories. Is ...
0
votes
1answer
42 views

Adding current folder as a prefix to file name without duplication

I'm trying to piece together a batch file that will add the current folder name as a prefix to all files within that folder. In addition this needs to be able to run multiple times without duplicating ...
1
vote
1answer
56 views

Automator: rename files fixing the gaps in numbers 1,2,3,5,6 -> 1,2,3,4,5

I have a huge bunch of scanned files (before OCR) and I want the Automator (Yosemite) to fix the gaps in files numbers: some pages was duplicated and after deletion the duplication there are gaps in ...
1
vote
2answers
424 views

Renaming hidden files to their filename sans .. (double dot)

I accidentally ran a script that added a ".." infront of a variety of files. ie. originalfile ==> ..originalfile Now I have a variety of files that are hidden. Being new to Linux commands, is there ...
1
vote
1answer
39 views

Directory with same name subdirectory move

I got myself stuck and can't seem to find a quick way to fix this. I have an external HDD with a folder structure like this: \folder1 \folder2 \folder3 some of these have a subdirectory named the ...
0
votes
2answers
156 views

How do I rename multiple files on Windows? [duplicate]

I have 2800 files, all of whose names start with a four-digit number followed by " - ", and I want to delete all those leading numbers from all the files, leaving only the alphanumeric file names1.  ...