Questions tagged [batch-rename]

Batch renaming is a form of batch processing used to rename multiple computer files and folders.

Batch renaming is a form of batch processing used to rename multiple computer files and folders in an automated fashion, in order to save time and reduce the amount of work involved. Some sort of software is required to do this. Such software can be more or less advanced, but most have the same basic functions. Batch renaming software exists for most operating systems.

Reference: Wikipedia

924 questions
3
votes
2 answers

Batch rename with MSBuild

I just joined a team that has no CI process in place (not even an overnight build) and some sketchy development practices. There's desire to change that, so I've now been tasked with creating an overnight build. I've followed along with this…
Marc Chu
  • 201
  • 3
  • 17
3
votes
3 answers

Perform multiple search-and-replaces on the colnames of a dataframe

I have a dataframe with 95 cols and want to batch-rename a lot of them with simple regexes, like the snippet at bottom, there are ~30 such lines. Any other columns which don't match the search regex must be left untouched. **** Example: names(tr) =…
smci
  • 32,567
  • 20
  • 113
  • 146
2
votes
1 answer

How to rename a folder with a number (ie Folder1, Folder2, etc....)

I'm messing around with dos and batch files for the first time and I am trying to make a "program" to backup my Minecraft saves (lol). I want the program to rename the current save (in my MinecraftSaves folder) as "Backup#" before the next one is…
mandelbug
  • 1,548
  • 5
  • 20
  • 32
2
votes
3 answers

How to substitute accented characters when renaming text files using first line in Powershell

I'm trying to batch rename plain text files using the first line of each file. I want to keep only alphanumeric characters in with your help I'm almost there. The only issue is that I need accented characters like é or á to be preserved in a form of…
eera5607
  • 305
  • 2
  • 8
2
votes
3 answers

Variable for "Media created"? (Powershell)

What is the variable for "Media created", using Powershell? I'm trying to change many .mov files at one time, in a folder, from "IMG-3523" to their respective creation dates. I was using the following code to do so, using…
2
votes
1 answer

How to use File-Rename aka Perl's rename in Windows?

There's tons of rename examples out there, but most of the time, these are for Unix/Linux users. What about if I want to use it using windows?
Gilles Quénot
  • 173,512
  • 41
  • 224
  • 223
2
votes
3 answers

recursive renaming file names + folder names with a batch file

I like to create a batch file (winxp cmd) that recursively goes through a chose folder and sub folders and renames there files+folders with the following rules: from all file + folder names, all uppercase+lowercase "V" and "W" letters need to be…
Tom
  • 6,725
  • 24
  • 95
  • 159
2
votes
2 answers

bash: Truncate filenames, adding incrementing number for duplicates

I would like to shorten all filenames in a given location, and where the truncation produces duplicates, include an incrementing number in the filename. I am most of the way there, thanks to this solution: bash: Truncate Filenames, keeping them…
2
votes
2 answers

How to rename files with same string and add suffix

I have a lot of images in subdirectories with same string in filename and I want to rename these files and append a suffix to their…
sokolata
  • 491
  • 3
  • 7
  • 21
2
votes
1 answer

Replace URL Character Encodings In Windows Filenames (Batch)

I am trying to replace URL encodings (e.g. %20 as a placeholder for a space) with their corresponding ASCII values in all filenames in a Windows folder and its subfolders. If have a simple .bat file that can accomplish this, but it has…
2
votes
2 answers

Batch rename to numeric names with leading zeroes

So I'm trying to write a batch that renames .EPL to fbXYZ.EPL (XYZ - number with leading zeroes) So something like bes_rush.EPL should turn into fb001.EPL and other files should get renamed too (fb002.EPL, fb003.EPL, etc.) Here's what I…
DniweTamp
  • 25
  • 3
2
votes
1 answer

Powershell - rename item in sub folders

I am new using powershell and I need some help with a script. I been using dir | Rename-Item -NewName {$_.Name -replace "Abc_123", "XYZ"} to change a bulk of file names in a folder but I would like to do more. I need to change from…
Jay
  • 21
  • 2
2
votes
1 answer

os.rename Error "The system cannot find the path specified"

Similar questions have been asked about this on SO already, and I actually got this code from a post on here, but I am having trouble debugging this error. import os paths = (os.path.join(root, filename) for root, _, filenames in…
KLonge
  • 55
  • 7
2
votes
2 answers

Batch Replace Character in File Names

I have about 600 video files with the $ special character in the title. I want to batch replace this with a letter s. I found the powershell code online below and it works fine with replacing letters with other letters but fails when trying to…
TevinTwoTimes
  • 103
  • 1
  • 10
2
votes
1 answer

How to clean-up file paths (back/forward slashes) provided as arguments in a .bat script to avoid syntax errors

I have a simple .bat script which renames all files in a folder using ren. The input argument is a path to a folder containing the files to be renamed. The script sometimes returns syntax errors which we've traced to the fact that sometimes the…
Nena
  • 23
  • 3