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

Removing carriage returns from a text file using a batch file based on a value

I have a text file that I would like to edit and therefore would like to remove the last line. I have the following code for this: for /f "delims=" %%a in (input.txt) do ( echo/|set /p…
Julius
  • 17
  • 3
-1
votes
1 answer

Rename CSV file with value from 1st column with batch

I would like to rename my CSV file with the value from the 1st column. How can I do that? Example CSV: 123ABCQ;TEST1;TEST2;.....;;;;; previous file name: output.csv new file name: 123ABCQ.csv
Julius
  • 17
  • 3
-1
votes
1 answer

Renaming files inside a zip file

I am trying to write a python script to rename files (containing a predefined string with another predefined string). How do I rename files and folders in a zip file, without extracting the zip file (as it could be very large)? import os import…
ankur jain
  • 11
  • 3
-1
votes
1 answer

removing last n words of multiple folder's names and parenthesize last word remaining using batch

I'm new here. I appreciate your help. I have multiple folder in current directory named like this: word1 word2 word3 word4 word5 word6 word7 word8 word9 I need a batch-file to remove last n words with extra spaces of all folder's names and…
-1
votes
2 answers

rename files in a directory to insert spaces before and after a dash

I have a directory which contains the following type of files: 01.firstname surname-track1 name1.mp3 02.firstname surname-track2 name2.mp3 03.firstname surname-track3 name3.mp3 I'm looking for a BASH command to batch rename all my files in the…
ktb
  • 35
  • 5
-1
votes
1 answer

Rename part of the name in any files or directories in Python

I have a root folder with several folders and files and I need to use Python to rename all matching correspondences. For example, I want to rename files and folders that contain the word "test" and replace with "earth" I'm using Ubuntu Server 18.04.…
Kulcanhez
  • 1
  • 1
  • 1
-1
votes
1 answer

Add name of each directory to files inside the corresponding directory in linux

I have a directory containing multiple directories. here is an example of the list of directories: dir1_out dir2_out dir3_out dir4_out Each directory contains multiple files. For example folder1_out contains the following files:…
say.ff
  • 373
  • 1
  • 7
  • 21
-1
votes
1 answer

Linux Renaming files in a folder where the names is ab1.jpg, ab2.jpg, ab10.jpg etc

The order of the files is determined by a number that can be embedded in the filename, but sometimes in the beginning of the name e.g. file1.txt file2.txt file3.txt file10.txt file11.txt etc.. or 1.txt 2.txt 10.txt etc.. The renaming should result…
larand
  • 773
  • 1
  • 9
  • 26
-1
votes
2 answers

How to replace just first space in file name by a string on multiple files in a directory?

Does anyone know how to replace first space in a file name by a text like _TEMP- after the first 8 characters of the file name? Also I was hoping to write a batch file that can change multiple files in a directory with similar file name…
Wiz321
  • 13
  • 1
  • 7
-1
votes
1 answer

How to rename the folders with batch?

I have a file folder.txt file with a list of folder names on the HDD that have to be renamed with the names from gbv.txt. So the first line from folder.txt should be renamed with the first line from gbv.txt and so on. The folders are in the same…
Oleg_08
  • 447
  • 1
  • 4
  • 23
-1
votes
1 answer

How to Rename a Folder using Batch-Processing in Windows?

I am new to Batch programming and use MacBook to code, thus unable to run this piece of code that is supposed to rename a folder. Can anyone help me to know If it renames a folder successfully or not ? If not, give possible solutions. @echo off echo…
Charmaine
  • 3
  • 2
-1
votes
1 answer

Remove A String of Numbers or Text From The Beginning of A Filename

On MacOS Sierra (MacBook Pro), how would one remove random strings of numbers from the beginning of .pdf filenames as a batch so that they can be viewed in alphabetical order? For e.g. this is a sample of how these files appear in Finder with the…
Nat
  • 3
  • 2
-1
votes
1 answer

Can't rename files in Python

I am going mad at this. I have a simple cv2.imwrite() command which save me only the images that follow a certain rule. This is the code I am using to…
lucians
  • 2,239
  • 5
  • 36
  • 64
-1
votes
1 answer

Batch (X) Key, Want to End Process

Is it possible to close the Batch File, like "press any key"? Because I have made a Batch file, that renames a file. And when I Launch the .Bat file, The File changes name to the desired name. And when I "press any key" I made it so the File changes…
James
  • 7
  • 2
-1
votes
1 answer

Rename large amount of files using a counter loop within subfolders with a batch file - Windows 7

In Windows 7, I have a folder which only contains subfolders and no files. Within the subfolders, I have a bunch of .dcm files (medical images). The files within each subfolder have the same name, and I want them to all have different names, more…
Rob Carey
  • 11
  • 1