Questions tagged [batch-rename]
This tag is about the renaming of large batches of files.
326
questions
1
vote
1
answer
4k
views
Remove timestamp from filename
I need to rename files generated automatically, truncating a timestamp at the end.
Files are named "abcd_efgh_jklm_21.04.2015.csv", with the numbers being today's date in german culture spelling and ...
1
vote
2
answers
1k
views
Bulk Folder Renaming Powershell Script
The script below is used for Bulk Folder Renaming.
However I wanted to make this as a Generic Script so users can give input and use it accordingly.
This script has 3 inputs
a) Enter the Source ...
1
vote
1
answer
2k
views
Batch file to rename spaces with a dot, except the - part and have it lowercase
I am trying to rename a file from The Big Bang Theory - The Prom Equivalency.mp4 to the.big.bang.theory-the.prom.equivalency.mp4 with a batch script. Here's what I've got so far:
@ECHO OFF
setlocal ...
1
vote
1
answer
3k
views
running batch file within powershell
I'm running a batch file within PowerShell. It calls up another program to do a bunch of maps which it outputs to a subfolder called "GRD"
I then want to rename the files in the GRD folder ...
1
vote
2
answers
135
views
batch rename multiple mp3's stripping leading digits
Hi could anyone help me? Im trying to strip leading digits from multiple mp3 files so
"01 some_file.mp3" would become "some_file.mp3" if any one could show me how to doit with zmv that would be great
1
vote
1
answer
69
views
Recursively Rename File Extensions Across Multiple Drives
I have this for a batch file. I know squat about batch files.
FOR /r %%x IN (*.BMP,*.GIF,*.JPG,*.PNG) DO REN "%%x" *.jpeg
Which works fine locally. I need this to work across multiple drives (c:,d:,...
1
vote
3
answers
2k
views
changing order of files
I have a series of files named in alphabetical order (xaa.tif to xdg.tif). I need to reverse the order of the filenames so that the last file is processed first in a script. I would like to rename ...
1
vote
1
answer
1k
views
How to rename a movie file and also files ins subdirectories (e.g. subtitles) beginning with same prefix
I've several directories with movie files ,
and also subdirectories with subtitles files with same prefix or starting with same prefix.
I want to rename subtitles files with the Directory name it is ...
1
vote
3
answers
3k
views
Program that renames mp3 files using ID3 tag [closed]
I know a lot of people who have MP3 collections and find out their music directory looks a lot like this...
0.mp3
1.mp3
2.mp3
3.mp3
...
So useless with a file manager.
What is a freeware program ...
1
vote
2
answers
3k
views
Batch script to rename portionof a filename
I've been trying to make a script that will a file name and change only one word in it.
An example would be:
projectname.vcproj.domainname.username.user
to
projectname.vcproj.otherdomainname....
1
vote
1
answer
1k
views
I need to rename a group of numbered files, but modify the number + 5. How? [duplicate]
Possible Duplicate:
How can I mass rename files from the command line or using a 3rd party tool?
I have a group of 47 .mp3 files that are being used for a multimedia project that are named 01.mp3 ...
1
vote
0
answers
204
views
Flatten Folder Structure, Move Files from Sub-Folders to Main
In Windows command line, is there a way to bulk move all the contents of subfolders up some levels? In other words, a way to get rid of selected subfolders while keeping their contents? I would like ...
1
vote
1
answer
218
views
find and rename base directory and files under each basedir, add a prefix
I would like to recursively rename all matching directories and files under a path with a prefix that depend from the current directory.
.
├── G1_BIN_REFINEMENT
│ └── marker_genes
│ └── ...
1
vote
2
answers
282
views
Batch remove irregular suffix from folder names
I have a series of folders named in the following fashion:
11.23 John Smith
12.912 Kate Spade
23.34 Alexander McQueen
22.E01 Michael Kors
I want to rename the folder names to just:
11.23
12.912
23.34
...
1
vote
1
answer
44
views
Recursive rename with negate filter not working
I want my script to recursively rename all .mov files to _Proxy.mov, BUT I also want it to SKIP any files already named _Proxy.mov. The below command is still renaming all .mov files, and is ignoring ...
1
vote
3
answers
3k
views
How to trim multiple file names using batch file
I need to trim all file names in a folder on a daily basis and therefore am searching for batch file recommendations. Any help is much appreciated!!
The numbers behind the file names are changing on a ...
1
vote
1
answer
1k
views
Rename files based on specific text in file, file contains lots of Spaces and other text
I have been trying to get this to work without success. I have searched here and elsewhere for help and tried everything I could think of, the issue is its selecting additional text, I then get ...
1
vote
1
answer
550
views
How to batch rename Files, moving character to the end
Having previously used batch files to rename files with success, I thought this would be possible, but I just cannot get it to work for this case.
I have the following files which I'd like to rename ...
1
vote
0
answers
103
views
Incremental renaming files in wget2
How I can rename files in incremental img001.jpg, img002.jpg,img003.jpg in below.
i tried -o, as i am downloading multiple files from text files, the files gets truncated. -o is building a one large ...
1
vote
1
answer
805
views
Can git automatically rename files during clone/pull/commit?
We have a collection of scripts, which have, historically, had a different name-prefix depending on whether they are used in production or a lower environment.
We're switching to git now, and would ...
1
vote
2
answers
2k
views
How to rename files in all subdirectories
I need to rename all files in subdirectories. The names of the subdirectories are different, the file names are different, but they are always JPG files. I need a BAT script that will change the names ...
1
vote
1
answer
198
views
How command Bulk Rename Utility to disregard case when removing characters or words?
I see nothing in red box for case matching or sensitive!
I want it remove bunch characters or words regardless of upper or lower case!
1
vote
0
answers
119
views
How to batch-rename files in multiple folders
I run windows 10, and want to rename a single file a.jpg to b.jpg in many folders. Is possible?
1
vote
1
answer
166
views
Rename all .htaccess Files
I am moving many directories to Nextcloud which does not allow to upload .htaccess Files. Therefore I need to rename them to "DOT.htaccess".
Is there an elegant and easy way to do that with the ...
1
vote
1
answer
219
views
bulk renaming sets of image files
We use a 6-camera insect imaging setup described here: https://osf.io/s2p73/
Part of our workflow involves renaming the image files so they can be imported into our database. We currently do this ...
1
vote
2
answers
891
views
Rename Files in Folders
My goal is to create something in my Windows Server 2016 that renames all files in a folder continuously. But, I do not know a way of doing so. I have done some research about this but I only have ...
1
vote
1
answer
943
views
batch script to replace square brackets, across a whole drive?
I found a fabulous script to help with a recent virus attack, which replaces the square brackets in a filename. However, the virus managed to hit a large number of different filepaths before it was ...
1
vote
0
answers
552
views
Batch Renaming Folders With Date And Version [closed]
I am trying to batch rename about a thousand folders into a particular format - ("date" "version" - "title"). For example "100311a-Project Name". I am able to use a renaming application (Better Rename ...
1
vote
1
answer
3k
views
How to add a prefix to all folders and sub-folders? (windows)
re: How to add a prefix to all files and folders in a folder? (windows)
I am trying to create a .bat file which will rename a predefined folder structure with a project number prefix eg. project name/...
1
vote
1
answer
1k
views
Rename Multiple files with unknown/different names using powershell to same name
I have a group of pictures (.jpg) all in the same folder that are all named something different. I am trying to rename all of them to the same name, numbered consecutively like it would in file ...
1
vote
2
answers
162
views
Batch change link "Start In" directory
I have some 100~ish links in a directory. I want t change all of their 'start in' to "", i.e. nothing. It is very tedious to do this one by one in properties.
Is there any easy way (without ...
1
vote
2
answers
239
views
Is there a way to batch rename files involving rearraging the filename based on capitalization
I want to rename a large amount of files in the format:
Firstname LASTNAME ABC to yyyymmdd.pdf
where ABC is a random acronym, and yyyymmdd is the date, to:
LASTNAME Firstname ABC to yyyymmdd.pdf
...
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 ...
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 ...
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
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 ...
1
vote
1
answer
93
views
Semiautomatic rename of files according to pattern?
I have a lot of files and directories named similar to [Origin]Description[Techinfo].
Sometimes, brackets can be round brackets instead of square brackets, or spaces between the parts. How can I ...
1
vote
0
answers
257
views
Mac Terminal Renaming Bulk files Randomly
I have googled and looked on here but nothing is as basic as I want it.
Whats the best way to rename a folder of both .jpg and .JPG files to a random number - I have 250 images and I randomly want ...
1
vote
2
answers
1k
views
Copy file names to another folder
I need to copy file names from one folder to another. File contents are never changed. No files are overwritten, moved or copied. It's only about file names.
I have a folder A with files named:
Show -...
1
vote
0
answers
132
views
Image names with international characters - 404 error
Hi I'm trying to figure out what's wrong, and maybe someone can help me out.
I recently moved a bunch of images over to a new server and imported them into my wordpress database. Many of these images ...
1
vote
1
answer
518
views
Program / Script / Method to rename EAC-ripped album of MP3s using Masks
tl;dr: skip to last paragraph
I’ve recently changed the filename format that I use in Exact Audio Copy when ripping CDs. I have changed it so that for various-artist CDs, the track number then CD ...
0
votes
3
answers
4k
views
Automate the renaming of file in OSX
Example: We have a folder filled with 30 images with inconsistent names. These images need to be named consistently and numerically: image1.jpg image2.jpg image3.jpg ... image30.jpg
Can this be ...
0
votes
3
answers
513
views
Mac OS: how could I rename a file like APP_001.gif to 01.gif?
I have a load of files in a directory. They all have names like:
APP_001.gif
APP_101.gif
How could I bulk rename them to
01.gif
101.gif
i.e. get rid of the prefix before _, and then remove the ...
0
votes
2
answers
1k
views
How can I rename a directory name replacing the first letter of each word in the name string to uppercase?
On a Windows 10 computer, I've been using free utilities like PFrank tool and Power Toys PowerRenamer. With PFrank I was able to change the case of each word in the name of the filenames to uppercase, ...
0
votes
1
answer
595
views
Rename files in a directory [duplicate]
Possible Duplicate:
Rename a group of files with one command
I have a directory having .txt files. I need to rename the extension of all the files to .xml. How can I do this in command line?
I ...
0
votes
2
answers
1k
views
Move part of the filename to the front of the filename
I want to move a part of the filename to the front of the filename.
All my files have a delimiter # in them, such as: 2585#xxxxx#4157.pdf.
Now I want to move the part after the last # to the second ...
0
votes
2
answers
3k
views
Best way to Delete characters from Filename after a specific string of characters in Windows
I was wondering if there's a quick an easy way to search for filenames with several characters and delete all the characters after those.
For example if I have a file called:
Great Movie Title 2021 ...
0
votes
2
answers
5k
views
Batch rename multiple files by creation date [closed]
this is my first question in superuser.
As you probably read in the title I would like to rename multiple files using a .bat file.
I'm currently working on a project that involves books. In this case ...
0
votes
1
answer
2k
views
Midnight Commander multi-rename with numerical values for new file names
With F6 we can multi-rename group of selected files in mc. I know, for example, how to search and replace using some regexp tokens subset in this menu. But how to proceed if I need rename a group of ...
0
votes
2
answers
3k
views
Rename with a "/" in the name
I am trying to change a @ in the name to / for multiple files using cmd's ren command but couldn't as "/" is an identifier.
None of the below worked...
1. ren TODAY@WEEK TODAY/WEEK
2. ren TODAY@WEEK "...