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
0
votes
0 answers

Batch rename list of files based on other properties?

I have two folders. Folder A contains high resolution images and folder B low resolution images. Images of Folder B are located in the server. I need to change all images to a higher resolution version contained in local folder A, without changing…
0
votes
2 answers

How to recursive regexp rename in shell?

I am using Wordpress Eazyest gallery to create 2000 galleries. Some files have double or triple dashes in filenames. For instance: abc---def.jpg On Wordpress admin and front end they get replaced, this file gets the name abc-def.jpg so they become…
0
votes
2 answers

Change extension of specific filetype on current folder and subdirectories with .bat

I would like to rename all the .log as .ok from a particular folder and subdirectories
baptme
  • 10,062
  • 3
  • 52
  • 57
0
votes
4 answers

batch file to copy some files and changing their name

I need to create a batch file to copy some files. I have several files on a folder, having all of them a date as part of the filename, and only some of them have the current day…
user3009973
  • 1
  • 1
  • 2
0
votes
2 answers

How to give multiple files an extension when they currently have none? (Windows 7)

If you wish to change the extension on multiple files you simply change directory to the folder in question and simply use ren. But what if the file has no extension, i.e. someone deleted it. Example: If I wanted to change a folder full of .txt…
0
votes
2 answers

USB Flash drive batch file letter assignment

I was wondering if somebody could help. I have written a java program that loads a .cvs on a usb flash drive. This program is likely to be used on several different windows laptops but the program uses a fixed file locataion i.e :F drive. I was…
user2965258
  • 137
  • 3
  • 12
0
votes
3 answers

Rename Batch File Has To Be In Same Folder

For some reason my code below only works if the batch file is in the same folder as the files to be renamed even though i've specified the path. When the batch file is in a different folder I receive an error saying the file can't be found. Any…
Cass
  • 39
  • 1
  • 6
0
votes
1 answer

How to write mutilple information in text file using windows batch scripting

I have a text file with no. of file formats. I want to print those file names to one text file one by one. Problem here is as soon as it check second file format name and try to write in text file, it will erase the first record info.Here is what I…
0
votes
4 answers

Batch file output datetime

I'm creating a batch file to run some back-ups. But when i try to give a file a name with the current datetime it gives a weird result. I'm…
Companjo
  • 1,789
  • 18
  • 24
0
votes
2 answers

How to add and remove postfix for all files in folder using BATCH File

I'm trying to add and remove postfix from specific file types in all folders and subfolder. I know the code for adding prefix but I don't know the code for postfix Here is my code for prefix Adding PreFix: @echo off pushd "D:\Temp\Test\" for /F…
Nilesh12
  • 99
  • 1
  • 2
  • 15
0
votes
2 answers

Remove spaces on filename windows

Can someone help me to remove spaces in a filename of windows. Example: ABCD001 _V01.DOC >>>> ABCD001_V01.DOC ABCD002 _V01.DOC >>>> ABCD002_V01.DOC Thank you.
mysticfalls
  • 445
  • 5
  • 17
  • 28
0
votes
3 answers

Batch Script to Rename JPEGS adding a 1 to the end

I have a large amount of JPEGs inside subfolders that I need to rename to their current name with an extra 1 at the end. For example: G:\FILENAME\Subfolder1\subfolder2\JPEGNAME.JPG Want to rename…
Mike
  • 3
  • 1
0
votes
2 answers

Remove Prefix from all file in current folder as well as files in subfolder windows batch

i am trying to remove prefix from all files in current folder and subfolders i tryed following code which work only for current folder setlocal enabledelayedexpansion for %%F in (*) do ( set "FN=%%F" set "FN=!FN:~15!" ren "%%F" "!FN!" ) goto…
Nilesh12
  • 99
  • 1
  • 2
  • 15
0
votes
1 answer

How to rename a set of files with CMD Win7?

How to rename a large number of files within subfolders with the command prompt? The files are currently named like this: 25738458-10000 25738458-20000 25738458-30000 25738458-100000 25738458-110000 25738458-120000 25738458-1000000 After renaming…
0
votes
1 answer

Bulk rename files containing underscores in Command Prompt

I want to rename a batch of files with the names example_P1.csv to example.csv in a folder in command prompt. How do I achieve this? I can't get any success with the following command: ren *_P1.csv *.csv I want to remove _P1 from all those…
Bhanu Chawla
  • 1,138
  • 2
  • 13
  • 26