Questions tagged [batch-rename]
This tag is about the renaming of large batches of files.
326
questions
0
votes
1
answer
1k
views
How to rename last part of file name
I have a number of files to rename, I want to remove _thumb in existing name.
Eg: 00700008_thumb.jpg
00800104_thumb.jpg
01200004_thumb.jpg
I want to rename the above files as:
Eg: 00700008....
1
vote
4
answers
3k
views
How to rename by removing last part name for multiple files
I have a number of files to rename.
Eg: ERKS 400001_thumb.jpg
ERKS 500124_thumb.jpg
ERKS 100004_thumb.jpg
I want to rename the above files as:
Eg: 00400001.jpg
00500124.jpg
00100004....
0
votes
4
answers
15k
views
How to change name of file to upper case and extension to lower case?
I have some files as shown in below:
input: ObjectName.TXT
I want to convert name of the file to Upper case while extention should be in lower case by using batch file. please help me how to convert ...
0
votes
2
answers
2k
views
Automatically renames files with correct file extention in bulk
I have a folder with multiple types of file ( mp4, mp4, jpg, wma .etc) and these files have either have no extension, or all messed up extensions extension such as mp3.mp3, mp3.jpg, or just file name. ...
0
votes
1
answer
448
views
Sort Folders/Copy Folder/File Name by Custom Filter in Windows (Using Extrabits)
I am trying to sort and/or copy folders and filenames under Windows 10. I am using a third-party software called Extrabits, which allows me to copy the name of a folder or file. I have two folders, ...
0
votes
1
answer
2k
views
Powershell: batch rename and keep extension?
Is it possible to batch rename a series of files and keep the original extensions in a sequence?
For example, if you had the files in a directory:
dogfile1.jpg, wolffile493.png, and dogfile59.jpg
...
1
vote
1
answer
873
views
Windows 10 File Explorer: batch rename formatting options?
When Windows 10 batch renames files it uses a format like: "file (1).html".
Is it possible to set the the default for batch renaming to format the files like: "file1.html" to avoid additional ...
-2
votes
2
answers
1k
views
Batch rename files to remove certain characters [duplicate]
I have about 1852 video files and they all end with .br or .brx and I wanted to remove them from the file name.
What method could I use to accomplish what I asked above; to remove file extension from ...
2
votes
1
answer
3k
views
How to change date format in file name using bash/linux?
Is there an easy way to change in a linux console the date format in a file name?
Eg. I have a bunch of files which contain a date (DD-MM-YYYY) in the file name like:
example_20-08-2016.pdf
and I ...
-3
votes
2
answers
240
views
Command CMD in Windows
How can I make this:
Into this:
Using CMD commands.
0
votes
4
answers
832
views
How can I go through all folder and rename files
I have a folder that contains a lot of numeric folders (1,2,3...). Inside them are some pictures.
How can I go through each folder and rename pictures to 1,2,3...
0
votes
0
answers
1k
views
How to batch-rename photos from EXIF data?
I have a DCIM directory containing photos named as IMG_{NNNN}.JPG from iPhone and photos named as DSC_{NNNN}.JPG from Xperia.
This directory is the result of multiple directories merging, which all ...
-1
votes
1
answer
1k
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?...
3
votes
3
answers
9k
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 ...
0
votes
1
answer
121
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
1
answer
207
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 ...
2
votes
1
answer
441
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.png ...
2
votes
2
answers
2k
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
4
answers
140
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 ...
0
votes
1
answer
268
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
1
answer
2k
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 ...
8
votes
1
answer
7k
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"?
0
votes
1
answer
159
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
2
votes
1
answer
2k
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 ...
4
votes
1
answer
5k
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 ...
18
votes
2
answers
94k
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
1
answer
98
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 ...
12
votes
1
answer
18k
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
1
answer
8k
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
...
-1
votes
1
answer
98
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 add ...
3
votes
1
answer
4k
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
4
answers
7k
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
2
answers
9k
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 ...
0
votes
0
answers
278
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 ...
5
votes
4
answers
27k
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
1
answer
177
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
...
0
votes
3
answers
64
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
1
answer
318
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 ...
2
votes
1
answer
447
views
Add suffix to file with context menu in Windows Explorer
Want to add a suffix to (rename) filenames via right click menu.
Like this:
Right click on file.
Select the suffix from context menu.
The file gets renamed.
I tried adding the following registry ...
5
votes
3
answers
1k
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 ...
1
vote
1
answer
1k
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 ...
2
votes
2
answers
4k
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
...
1
vote
1
answer
4k
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
1
answer
268
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
1
answer
651
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
2
answers
6k
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
1
answer
1k
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
2
answers
782
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.
...
4
votes
4
answers
21k
views
Start a Command Prompt and then change the title of it via batch file?
I'm trying to start a command prompt via a batch file, echo some text, and change the title of the command prompt. I'm trying:
start cmd
/k echo This is a terminal
/k title Terminal
The echo text ...
2
votes
0
answers
452
views
Bulk file rename - remove certain part of a file name
I have lots of files where I want to replace the first part of the file name (before the last "_") with an "e".
tom_&_jerry-s03e12_3089.jpg
mickey_mouse-s06e02_16091.jpg
peppa_pig-s06e04_23092....