Questions tagged [batch-rename]

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

Filter by
Sorted by
Tagged with
0 votes
3 answers
57 views

Batch Rename Files by Switching Two Parts of the Name

I'm new here and don't have any coding knowledge or experience or software, but I use Windows 10. I have LOTS of files named like:(1) 2020-03-12.mp3(7) 2021-04-10.mp4(6) 2022-08-25.docxetc.They're mp4,...
user avatar
1 vote
1 answer
62 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 ...
user avatar
0 votes
3 answers
106 views

How can I batch rename files on Windows 7?

I have many files like these: simple-1.gif simple-2.gif simple-3.gif I want to use command prompt to rename them all with the same pattern so they look: aa1.gif aa2.gif aa3.gif I tried with this: ...
user avatar
  • 179
0 votes
1 answer
161 views

How to implement regex on a powershell find and replace to quickly change file names in windows 10?

Hi I have a set of files in a folder (windows 10) that are named something like this: asfdjlaksjfdi09908jfakl.part1.rar aabdjkhihsdjkf.part2.rar sdjklufia9798uiownlnsadkfasdFASDFrwe34342.part3.rar ... ...
user avatar
-1 votes
2 answers
649 views

Powershell command (in batch file) to remove last 3 characters (before extension) from file name?

I have mp3 files (with names of different lengths) and want to remove the last three characters before ".mp3" for each mp3 file next to the batch file. For example foobar043.mp3 needs to ...
user avatar
  • 393
0 votes
1 answer
78 views

Is there an easy way to bulk swap the file names of two files in Windows?

Is there an easy way to bulk swap the file names of two files in Windows? I have File_A.txt and File_B.txt and after the operation, File_A.txt is now called File_B.txt, and vice versa. :: Old Name ...
user avatar
  • 11
0 votes
0 answers
25 views

I want to rename 2K photos by their creation date/time, as found on Windows Explorer [duplicate]

I want to rename 2K .png files (screenshots, not photos) with (not "in order of") their creation date/time, as found on Windows Explorer. I have researched the question on SuperUser and ...
user avatar
0 votes
2 answers
87 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 ...
user avatar
  • 39
0 votes
1 answer
120 views

Rename files from different to same name with different extension

I have 12 folders with each containing two subfolders: "Images" & "Json". Now each "Images" folder has 10 image files named from 1.png to 10.png and each "Json&...
user avatar
0 votes
1 answer
226 views

Replacing characters in multiple folder and file names

I have a large movie library using Plex (Local Media Server) and have named multiple files in the wrong order. Plex will disregard square brackets when searching file names for a corresponding movie. ...
user avatar
  • 3
0 votes
0 answers
40 views

How to remove a section of multiple file names?

I have many files with a wildcard section I'm having to manually remove and was wondering if there was a way to do it automatically, for example I would want to rename: Perfect Dark#43DDCBF0#2#0#...
user avatar
  • 1
0 votes
1 answer
47 views

Remove .txt extension from all subfolders

Is it possible to create a batch file that removes all instances of .txt extension appearing? I tried the following, but it doesn't work for me. for f in *.txt; do mv -- "$f" "${f%.txt}&...
user avatar
0 votes
2 answers
215 views

Powershell: How do I shift a date (format: yyyymmdd) from any position in the file name to end of the file name?

Currently im using dir | Rename-Item -NewName {$_.name -replace "",""} to rename files in a directory. The file names vary and need to be unified. Examples for file names: ...
user avatar
0 votes
0 answers
66 views

Batch remove trailing space in directory name on Synology DSM7

on my Synology NAS, i found that tons of directories have trailing space in names, which leads to be unreadable when parsing from os X, name changed to strange string with capitals and tilde. I ...
user avatar
0 votes
1 answer
82 views

Find and replace from a different text document from each new line

I have some file conversion software that which works through cmd and doing something along the lines of: converter.exe input.wav -o output.wav --ffmpeg "-af volume=0.1" I'm trying to ...
user avatar
0 votes
1 answer
331 views

cmd gives me an error i was unexpected this time in a batch rename loop

I am very new to cmd and I have a problem rename a batch of .jpg files. I found this script and it gives me the error i was unexpected this time. for i in *.jpg; do mv -i "$i" ${RANDOM}.jpg ...
user avatar
  • 1
0 votes
1 answer
113 views

Make The Folder Name The Same As The File Names

I have a directory structure as below: Folder > FileName1.abc > Filename2.abc > ............. Folder2 > FileName11.abc > Filename12.abc > .............. >...
user avatar
  • 3
1 vote
2 answers
157 views

How to add a partial phrase to multiple file names at the same time in Windows Explorer?

I have files named 1.png, 2.png, 3.png, etc, going all the way up to 500 image files. I intend to put a word in front of the number, so the new file names would be alpha-1.png, alpha-2.png, alpha-3....
user avatar
  • 135
1 vote
0 answers
24 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 ...
user avatar
  • 340
0 votes
2 answers
129 views

Using Windows rename to replace a single underscore with a double?

Can anyone advise me where I am going wrong with this? I have some file names that contain XXX XXX_Layer_XXX and I'm trying to replace to XXX XXX_Layer__XXX My attempt so far was: ren "*Layer_*.*...
user avatar
  • 111
3 votes
2 answers
1k views

How to rename my folder and any of its subfolders into lowercase using command prompt in Windows?

I have many folders and subfolders. They have random uppercase or lowercase letters in their names. I'd like to rename all of them into lowercase version. I see many answer here about renaming files ...
user avatar
  • 650
3 votes
2 answers
529 views

Batch command to rename filenames like 'The Kids Performances (2020).mp4' to 'Kids Performances, The (2020).mp4'

My family has recordings of the children's performances in school and extracurricular activities saved over the years as primarily .avi and .mp4 files. I have been asked to take all these files (there ...
user avatar
  • 87
0 votes
2 answers
611 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 ...
user avatar
  • 409
0 votes
0 answers
36 views

How to append time of creation to a file and to all WikiLinks instances where appear inside a text?

I'm using Obsidian as a zettlekasten app. I have a vault of 1000+ .md files with my notes. Some of them are linked inside other notes via wiki links. I want to change all my .md file's name by ...
user avatar
  • 113
3 votes
1 answer
124 views

How I can rename txt files according to first line of text file? [closed]

I have multiple .txt files and I want to rename them as first line text they contains. First line in every text file is some number and text Example ParagraphL23 I want my text file to be renamed as ...
user avatar
  • 340
0 votes
0 answers
37 views

Access is denied in one folder but not in another

I had a number of files that were downloaded from the internet and they were in Folder A. I tried to run a .bat file on them to rename them, but on every single file I got the error Access is denied. ...
user avatar
0 votes
1 answer
63 views

how can i output imagemagic image with the name of the containing folder in batch?

FOR /R %%a IN (poster.jpg) DO convert "%%a" -resize 256x256 -background none -gravity center -extent 256x256 "%%~dpna.ico" The current behavior is to grab every poster.jpg file ...
user avatar
0 votes
1 answer
155 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 ...
user avatar
0 votes
1 answer
49 views

Shell - How to rename files in the midle of file name?

I have to resize images, and want to rename them on the fly Names are like following Compet-210-123456.jpg Compet-210-123457.jpg ... Compet-211-123555.jpg and I would like to inject 4k between two ...
user avatar
  • 73
0 votes
2 answers
464 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, ...
user avatar
  • 303
2 votes
2 answers
661 views

batch file to rename folders creates new folders

Because I have multiple back-up copies of all files, I use the following batch file to rename files so that I don't have to go into each drive/folder to rename files manually. The batch file works ...
user avatar
  • 223
1 vote
2 answers
377 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 ...
user avatar
  • 11
0 votes
1 answer
342 views

Trying to parse a string that I generate in a batch file into a few values of an XML file

I'm trying to create V2 of my little batch file. I only know batch , so I'd prefer to do this if possible instead of powershell but if I have to, I have to. The app just copies five files that are the ...
user avatar
6 votes
2 answers
295 views

What did I do wrong in my batch?

I would like to change the file extension from .jpg to .txt. This must happen both in the current folder and in all sub-folders. What did I do wrong in my batch? for /R %%G IN (.) DO (rename *.jpg *....
user avatar
  • 61
4 votes
3 answers
3k views

How to increase numbers in filenames by specified value with Windows 10 PowerToys's PowerRename?

I've got a bunch of files named as: 01. Filename.ext 02. Filename.ext 03. Filename.ext etc. I need to batch rename them with PowerToys PowerRename by increasing the number in the beginning of the ...
user avatar
  • 205
0 votes
3 answers
2k views

Changing hyphens (-) to underscores (_) on Win10 for many files: Windows search hack

I have a directory with various files and some of the filenames have subparts separated with hyphens / dashes i.e. - e.g. foo-bar.pdf Unfortunately this seems to confuse Windows 10 Explorer's search. ...
user avatar
0 votes
1 answer
143 views

Renaming pdf files to include the parentfolder name as the prefix, and including a unique suffix

Please can you help. How can I rename pdf files to include the parentfolder name as the prefix, and adding DRAFT as a suffix? For example, for parent folder name \ABCDEF: xyc123.pdf fgh456.pdf I ...
user avatar
0 votes
1 answer
651 views

Script to add suffix to filename [closed]

Hi I am trying to add a suffix before the extension for all files in a folder. Is there anyway I can get a script to do this with notepad please. I cannot use any other means :-( Example files is my,...
user avatar
0 votes
1 answer
144 views

How to save and rename XML file automatically based on its object name [closed]

I have a hundreds XML files but with a random file names. They named like this: Bt_01.XML Bt_02.XML Bt_03.XML Bt_04.XML But they supposed to named like this: Button_Accessories.XML Button_Menu01....
user avatar
  • 25
0 votes
2 answers
2k 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 ...
user avatar
0 votes
1 answer
189 views

Windows rename multiple files from multiple folders having pattern

I have a folder in which there are multiple sub-folders(only one level) which has multiple files. Names have some dynamic prefix that I want to remove based on pattern in it. 1. ...
user avatar
  • 1
0 votes
6 answers
3k views

Renaming a section of filename for multiple files in powershell or command prompt

I have some 100s of files having names like this: MOD15A2H.A2012001.h26v06.001.2015230181014_LAI500m.tif MOD15A2H.A2012009.h26v06.001.2015236194306_LAI500m.tif MOD15A2H.A2012017.h26v06.001....
user avatar
  • 11
0 votes
0 answers
347 views

Accidentally renamed all files on desktop in windows 10 and they also got rearranged

I accidentally renamed all files on desktop in windows 10 and after that happened they all got rearranged and aligned to the left. I don't have file history and don't have a restore point on this pc. ...
user avatar
2 votes
4 answers
843 views

How to rename all the files and folders of files in a folder to have lower case names at once?

I have a folder with a bunch of textures and things that I need to rename to lower case, is there any way to rename all the files and folders of files in this folder to have lower case names at once? ...
user avatar
2 votes
2 answers
216 views

Windows rename multiple images

I have a folder containing only images: 1.png 2.png ... 11000.png I want to rename these files, adding a p as follows: p1.png p2.png ... p11000.png How can I achieve this, as I've tried the ...
user avatar
1 vote
2 answers
976 views

How do I rename the **entire** path

I need to rename (in particular not to copy nor to move) in Windows 8.1 this file path D:\Users\hynek0\1703.08094.pdf – zástupce to this path C:\Users\hynek0\1703.08094.pdf – zástupce Here, – ...
user avatar
1 vote
1 answer
296 views

How would I unnest multiple folders in Windows programatically?

So, I have a folder structure with some downloads that goes like this (I manually edited it a bit because it contains some sensitive data, which is not relevant to the question. The extensions are ...
user avatar
1 vote
2 answers
535 views

Recursively adding extensions to files in Windows CMD without renaming the subdirectories

I have a directory with several files that do not have a file extension. This directory also has several subdirectories that have the same thing. I am using the forfiles command to add a file ...
user avatar
2 votes
3 answers
3k views

Renaming multiple folder using command line

I am trying to rename multiple folders at once, removing the first few characters of their name: I found resource around but none of the command that I have tried worked: 2 - AT5CRO5JUDBWD4RUPXSQ 4 - ...
user avatar
  • 23
0 votes
1 answer
879 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 ...
user avatar
  • 223

1
2 3 4 5
7