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
2
votes
1 answer

Capitalize First Letter Of Each Word In Multiple Filenames (Powershell)

I have many folders with many files in each that I want to capitalize the first letter of each word for in a batch. I've seen solutions for capitalizing strings, but that's not what I'm after. I use Powershell and I like to copy the script into…
2
votes
1 answer

How to move part of a file name to a different position

I have a set of files in a folder. I would like to edit all file names by moving part of the file name to a different position. That is a sample of what I have: Par1_MD_0_5_AL_2_ND_4_Dist_0_Pot_Drop_out.txt …
2
votes
2 answers

rename batch files in folder using a textfile

I have a folder of files that start with specific strings and would like to replace part of their strings using the corresponding column from textfile Folder with files ABC_S1_002.txt ABC_S1_003.html ABC_S1_007.png NMC_D1_002.png …
Ryker Klie
  • 73
  • 5
2
votes
1 answer

Removing part of filename with bash

Why this script does not work? for filename in bre*; do rename 's/bre//'; done I have files starting with bre in the directory and I would like to delete this part from filenames. It is running and nothing will happen and it is not finished.…
Alex
  • 347
  • 1
  • 10
2
votes
2 answers

How to batch transfer rename?

There are two folders holding equal amounts of files between them. I'd like to apply the names from one set ; to the other set of files in no particular order. Inherit the name, but retain the extension . Input files are .bmp Output files are .ini …
Bat Man
  • 35
  • 4
2
votes
3 answers

rename multiple folder to Uppercase not files using powershell

I am working on powershell where I have multiple folders i need to change all folders names into Uppercase not the files only folder. I have tried the below code Get-ChildItem -Path "C:\Users\Xyz\Desktop\sample" -Recurse | % { if ($_.Name -cne…
Mr.M
  • 1,472
  • 3
  • 29
  • 76
2
votes
1 answer

How can I change the targets of a large collection of symlinks efficiently?

So, I have a collection of about a thousand symlinks from one Linux directory into a sibling directory that are used to reorganize a bunch of files without copying them. Here is a simulation of my situation with 3 files: $ ls ref reorg -l ref: total…
joanis
  • 10,635
  • 14
  • 30
  • 40
2
votes
0 answers

How to rename files in a batch loop

I am currently writing a script for compressing mp3 songs in a directory. It looks like this. SET BITRATE=128k SET EXTENSION=mp3 SET MP3_CODEC=libmp3lame for %%f in (.\*.%EXTENSION%) do ( ffmpeg -y -i "%%f" -acodec %MP3_CODEC% -ab %BITRATE%…
2
votes
1 answer

Rename file as per barcode using windows cmd or batch script

I have some scan images which having barcode i had found cmd barcode scanner tool bardecode -f C:\input\file1.png -t code128 >> C:\output\output.txt this will read the image file and save barcode number in output.txt file. I want to make a process…
ANKIT JAIN
  • 73
  • 6
2
votes
4 answers

copying files from subfolders and renaming

i need help with a task I need to copy an exported file from sub-directories into a new folder location and have them renamed. The issue is that all the exported files have the same name and it goes up to 500 --Old Folder ---Export1 …
Tommy0824
  • 25
  • 5
2
votes
1 answer

Linux rename with a variable character?

I have a list of files eg. page-1.htm page-2.htm page-32.htm How do I use rename to be like this: page-01.htm page-02.htm page-32.htm I am new to this and having trouble understanding the examples online. I want to do something like the following…
user500665
  • 1,220
  • 1
  • 12
  • 38
2
votes
1 answer

Shell script to move sub-sub directory file to parent after renaming

I would like to write a shell script which will put file at parent directory to avoid unnecessary navigation and more meaningful file name. For e.g. Actual: test-2 Chrome_68 errors 1.png test-5 Chrome_68 errors …
Jitesh Sojitra
  • 3,655
  • 7
  • 27
  • 46
2
votes
1 answer

Rename multiple files at once using cmd [Windows 10]

I want to rename multiple files using command prompt / batch script (as such cases often arise where I need to rename multiple files) from - quiz-1.png, quiz-2.png, quiz-3.png, .., .., quiz-20.png to…
Lokeshwar Tailor
  • 341
  • 4
  • 12
2
votes
1 answer

batch script: recursivle renaming files with multiple extensions

so to make myself a little more clear file1.ext1.ext2 >> file1.ext2 file2.ext3.ext4 >> file2.ext4 ... ->rename to-> I'm trying to achieve this with a for loop but I am stuck for %%i in (c:/) do ren %%i.??? to %%~ni.??? any could give…
Rps
  • 277
  • 1
  • 5
  • 25
2
votes
1 answer

appending date with filename using batch scripts

I am trying to set a housekeeping for different type of file. PFB scenario. I have below set of files in a network path(\NAS.domain.local\data\Arasan) test.sql test1.txt test2.log I am trying to rename the files as shown below and move the…
Arasan
  • 23
  • 6