Questions tagged [batch-rename]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
69 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 ...
1
vote
2answers
54 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 ...
2
votes
3answers
111 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 - ...
1
vote
1answer
56 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 ...
4
votes
2answers
95 views

Removing part of files names and giving the name of one file type to another

Suppose I have a folder with rar and pdf files for a group of people. Each person has a unique code, and he/she is associated with two files Full name <unique code>_dummy text to remove.rar and ...
0
votes
2answers
38 views

Using MV to rename image files using a script

I am trying to rename a set of Tiff images 001, 001 x, 002 , 002 x sequentially. I am looking for the script to name image 001, 002, 003 and so on This is the script I am running. num=1 # Rename ...
0
votes
1answer
73 views

Batch rename files to grandparent directory name

Directory structure looks like this: D:\folder0\subdir1\scan0001.tif D:\folder0\subdir2\scan0001.tif D:\folder0\subdir3\scan0001.tif D:\folder0\subdir1\RAW\raw0001.tif D:\folder0\subdir2\RAW\raw0001....
0
votes
0answers
20 views

Renaming Parts of Multiple Folders

I have a large number of folders that contain the video regions on the folders which I would like to remove. For instance, some are PAL such as /Folder1 [PAL] Some are NTSC such as /Folder2 [NTSC] ...
2
votes
2answers
95 views

How do I get the current directory name in a windows command prompt inside of FOR loop?

I'm using Win-10 64-bit. Given the following directory structure on my windows machine... c:\tmp\Logs_UAT\ '-> folder1 | '-> test.txt '-> folder2 '-> test.txt ...I'm trying to ...
0
votes
0answers
14 views

Creating, naming and sharing folder based on list of emails

I am a teacher in a class of 100 students. I have an excel list of all their emails(Rollno@domain.com) specific to university domain. I wish to create a distinct folder for each one of these students ...
0
votes
2answers
56 views

Rename only the first part of a list of files (Windows 8.1 via cmd or Git Bash)

I need to rename a batch of files (in W8.1 using cmd or Git Bash terminal) from: "Cymatics - Oracle 808 1 - C.wav" "Cymatics - Oracle 808 2 - C#.wav" "Cymatics - Oracle 808 3 - D.wav" "Cymatics - ...
0
votes
0answers
65 views

Windows 10 bulk rename folders to lowercase - keep first letter capital

I have a folder, with hundreds of folders inside it, all in capital letters. I am looking for a way to bulk rename all folders to lowercase, but leave the first character of each word as a capital ...
6
votes
5answers
2k views

How can I batch rename windows files where the % is a delimiter?

I have a lot of windows files where the filename contains a %. See below: c:\temp> dir /b 114902_T%3A%5CAccounting%5CPayables%5CAPA%5CBoshart Apr 25%5CBII_inv_1489879.pdf 114904_T%3A%5CAccounting%...
2
votes
3answers
213 views

Windows 10 Batch file to change directory names and move directories

I have fifty directories, in pairs, with names such as: ABC123-aaa-X0001 ABC123-bbb-X0001 XYZ456-aaa-X0001 XYZ456-bbb-X0001 SDF543-aaa-X0001 SDF543-bbb-X0001 I want to remove all the "-...
1
vote
1answer
103 views

ffmpeg file integrity check and rename on error with a batch file

I've found the code to check a file for errors and it creates a log file with the contents. Is there a way to alter it and rename a file that has errors but not the ones without? @echo off set "...
2
votes
6answers
287 views

How to rename files - Remove the name and keep the number

I need to rename a lot of files that contain a name and a badge number. The files look like this: "John Doe 1234.txt" and I must rename it to 1234.txt (new file must contain only badge number). ...
15
votes
8answers
6k views

Add .mp3 to the end of file names

I moved all my songs off my phone to a flash drive. Then I uploaded them to my new phone, only when they were stored to the flash drive they come over missing the ".mp3" so they are seen as "file". If ...
1
vote
1answer
61 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
2answers
64 views

How to change multiple filenames preserving variable part of the name in linux terminal

I have thousands of filenames with this regular expression: (sp|li)_(test|train|val)_(loss|acc)_((1e-\d+)|(0[.]0{0,4}1))_curious_\d+_plasticity[.]npy Examples of it are: li_test_acc_0....
1
vote
2answers
183 views

Powershell Renaming All Files in Folder with Counter

I am writing a script that will rename all files in a folder to a given name (param) with in increasing counter. I want the counter to print with 3 digits (001, 002, etc). My code looks like it would ...
1
vote
1answer
54 views

Batch renaming filenames to remove part after last “ - ” ignoring extension

I'd like to batch rename files in a certain folder, removing the part after the last -, in the following way. hello world - Mr Sheep to hello world super user - question on super user.docx to super ...
1
vote
2answers
61 views

Renaming files by their folder's folder name on linux

I am a marker and I have a whole lot of coursework files given to me in a folder with a structure like this: student number --> coursework1 --> coursework.thy Each student has one folder named ...
1
vote
0answers
41 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?
0
votes
0answers
26 views

Renaming Files Using Script in Windows

I have files in the form of: coll2_product_clip0100001 coll2_product_clip0100037 and want to rename them in form of coll2_product-1_clip01_F0001 coll2_product-1_clip01_F0037 To break it ...
0
votes
2answers
100 views

Rename file and encapsulte last X number of charactors, before the extension, in square brackets

I've been using youtube-dl to download an entire youtuber's channel for archival purposes. I had been using the default naming pattern for naming the videos which uses the video's title, then a hyphen,...
0
votes
2answers
156 views

batch file ren command Self destruct

sorry for the noob question, but i'm a beginner. I have a .bat that turns all of the folders containment's to a .jpeg using a wiled card because the containment's are empty extensions @echo off ren ...
0
votes
3answers
37 views

Windows 10 - Searching for a specific part of a filename within a set interval of characters

Good Day/Evening, Maybe someone could help, and just maybe this could help someone else. If one observes the example below: 01022015- BLABLABLA 04022018 - BLABLABLAB 02012016 - Blablabla What I ...
0
votes
2answers
170 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 "...
0
votes
1answer
81 views

Add leading zeros to the middle of non-sequential filenames

I've got over 1200 files (inside subfolders) which I have to rename by adding leading zeros to the middle of the file name. I want to do this because the program I load them into doesn't know that "10"...
1
vote
1answer
33 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 ...
0
votes
2answers
58 views

rename files with sed (rearanging filenames)

I have a bunch of files named like some_random_str1 - Lecture X of Y some_random_str2.mp4 I would like to change these names to Lecture X of Y - some_random_str1 some_random_str2.mp4 only ...
2
votes
1answer
42 views

Name files after the folders which contain them

I have folders that have specific names. Each of these folders contains a file named preview.png Is it possible to name the preview.png exactly after the folder which contains it? So that in the ...
1
vote
1answer
85 views

Windows rename multiple files

I have a folder with images : 1.png 2.png 3.png ... 11000.png. And I want to rename this files adding a p- as follows: p-1.png p-2.png ... p-11000.png How can I achieve this? I tried ren *.png ??...
0
votes
0answers
49 views

How do I remove duplicate files in a folder in windows? [duplicate]

Suppose I have two files with same name but different file sizes. Each file has two copies. One with size x. and its copy with size y. where x>y There are two copies of each file. One with x MB. And ...
1
vote
1answer
88 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 ...
2
votes
1answer
168 views

Rewrite the first three characters of *.ext file names in a folder with a set of letters

How to rewrite the first 3 letters of file name Using set alphabet: ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 to randomise characters Targeting all files of a particular extension in a folder *.ext ...
0
votes
1answer
99 views

Copy and rename multiple files in one step by txt list

I have list of files what I have to rename. There is no sequence or pattern in renaming therefore I use a .txt files to do it. I can rename and copy files in separate step but I would like to combine ...
1
vote
2answers
228 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 ...
0
votes
1answer
43 views

Batch rename files using correspondent values

I have a folder full of files, with names composed of 7 digits number. For each of these numbers, I have a correspondent name, saved in an excel file, separated into two columns. Usually, I check line ...
1
vote
1answer
119 views

how can i use advanced renamer to add modified date to the maximum lenght of the files names?

here is the command that describes what i want to do <Name><max space possible><Year Modified><Month Modified><Day Modified> so the Modified date won't show up unless i ...
1
vote
1answer
375 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
0answers
144 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 ...
0
votes
2answers
33 views

Batch rename places a space before variable

I am renaming a bunch of files that begin with TB-Practice to begin with P-. So far I have this batch pushd %~dp0 for %%i in ("TB-Practice*.pdf") do (set fname=%%i) & call :rename goto :eof :...
0
votes
1answer
554 views

Trying to rename files based on file size

I am trying to rename some MP4 files based on file size of mp4 files in another directory. I want to name all files with identical sizes to same name. Meaning if the file size of the source file ...
0
votes
0answers
106 views

Batch rename based on regex capture

Forgive me my lack of research, but I'm just not familiar with all the tools out there. I want to batch rename a list of files that goes like some_name_n1_51000 some_name_n2_51000 ...
1
vote
1answer
2k 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/...
-2
votes
1answer
514 views

Bulk rename files in Windows, to sequentially generated new names

I need help bulk-renaming some file names. I have around 300 directories. All files are Word .docx files, and need to remain Word files after renaming. In each folder I have between 1 and 20 files (...
3
votes
1answer
8k views

Batch append to end of a file name before the extension with ren command

I would like to rename all files in a folder, which have different extensions, to have their file name end with "_1" while preserving the existing extensions. I tried ren * *_1*, which just replaced ...
0
votes
0answers
2k views

Batch - Do something if filename contains string

I am trying to create a batch file to loop through all files in a directory, converting all files with no extension to a CSV. I then want it to rename those files as they are given a default filename....
0
votes
1answer
680 views

Download and automatically rename to the hyperlink text all PDF files on a page

I use Chrono Download Manager for bulk downloading all files of X type on a given page and it works very well. I am interested in downloading many PDF files from a website, all of which have non-...

1
2 3 4 5 6