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

batch rename directories from "NOTE" to "NOTES"

I would like to rename directories whose name contains the word "NOTE", but not "NOTES", to "NOTES". I first experiment with the echo command. for /f "tokens=1-7" %%i in ('dir d:\mydirectory /s /b /ad ^|find "NOTE" ^|find "NOTES" /v') do @echo %%i…
joehua
  • 725
  • 3
  • 10
  • 25
0
votes
1 answer

Batch rename images inside folders

I'm doing a data entry job and I need to rename all the images inside a bunch of folders. Instead of doing it manually I thought PHP could help. Inside each folder is an image. I need to loop through all the folders, grab the image and rename it to…
user990717
  • 470
  • 9
  • 18
0
votes
1 answer

how to write a batch file which can identify value from a text file and store that value in some other text file

i have a text file which have some number content and string content,I want to write a batch which can identify number content and store the number content from each line in some other text file.
0
votes
1 answer

Batch string `replace`?

Using system libraries, this would be very inefficient: foo = "foo bar car haz can bar foo" repl = {('foo', 'bar'), ('car', 'bar'), ('foo', 'haz')} for rep in repl: foo = foo.replace(rep) A replacement batch replace should solve this problem…
A T
  • 13,008
  • 21
  • 97
  • 158
0
votes
3 answers

Windows batch script to name files after containing subfolder and copy to root

consider following folder structure: root Folder1 file1.txt file2.dat Folder2 file3.doc file4.pdf rename.bat I want to rename the files (using rename.bat) according to the name of the respective subdirectories, copy them to…
Patrick Storz
  • 425
  • 4
  • 14
0
votes
3 answers

Renaming files in a folder (linux)

I have a different HTML files in a folder. How to rename the files so that they have the names of: 1.html 2.html 3.html ...
stark
  • 119
  • 1
  • 3
  • 10
0
votes
1 answer

needing to iterate through a folder and store documents into a variable

I need to iterate through a folder and collect all the documents and store them into a variable. Im stuck on how exactly to do this process. (has to be done as a batch file) Currently im here: @echo off REM bat file to import documents into…
Manu
  • 37
  • 4
0
votes
2 answers

MySQL - Batch rename all rows in PHP

So in this piece of code, I just deleted a row from the table, and so, the values for img_pos were: 1,2,3,4,5 And now, they are (assuming we deleted the third entry): 1,2,4,5 Of course, I want this to be: 1,2,3,4 So I have to batch rename the…
AmarokM
  • 41
  • 1
  • 7
0
votes
1 answer

Renaming files by removing a word from filename

I want to rename files in a folder that is currently named as A - f1, A - f2 where A is the folder name. I want to do this either in a batch file or shell script.
newbie
  • 1
0
votes
2 answers

batch file to find files with double file extensions and remove the last one

I have several folders that have files with double file extensions along with regular file extensions. I need to create a batch script to search all the folders and remove the last extension with any files that have double extensions. None of the…
Brian
  • 319
  • 1
  • 5
  • 13
0
votes
2 answers

How to rename all files in a folder and create a renaming map

Note: I have access to both Linux and Windows platform so answers for any of these platforms are fine. I have a folder which contains less than 10K .png files. I would like to: 1. rename all files as follows: .png to 0001.png …
polerto
  • 1,750
  • 5
  • 29
  • 50
0
votes
1 answer

How to rename large amounts of .asc files at once? with MS Office or Matlab

Here's the scenario: I've got this grid builder that runs large amounts of data at once, usually requiring about 10 hours per completion. It spat at all of my latest .asc files as oak_sabppt_2010_01_01.asc oak_sabppt_2010_01_02.asc …
WATERflowTech
  • 119
  • 3
  • 9
0
votes
1 answer

Search for a list of words in a file, then find those words on another replacing the whole line with Class=ShipDummy,replacing the 2 lines below it

I'd like to search for a list of words from an external list (simple each word on a line) which we'll call "List.txt", and search for them in a file (C:\Users\P Ditty\Documents\SH3\data\cfg\Backups_SCR*.clg) (matching the whole word, even if it's…
machiavelli
  • 92
  • 1
  • 1
  • 9
0
votes
2 answers

adding dates to copied files

I am trying to add the dates to copied files from one directory to another directory. This is how it should look like Original file name: XEsalary.csv Result file name: XEsalary-2013-02-15.csv Here is my code: set REMOTE=U:\ set…
Jaanna
  • 1,620
  • 9
  • 26
  • 46
0
votes
2 answers

Renaming of multiple files via batch script

I have this part of batch script which is doing following: -Under every sub-folder it renames files: 'jpg,gif,png' to 'Poster 1', 'Poster 2', 'Poster 3' and so on... (no change on extension) set i=0 for %%b in (*.jpg *.gif *.png) do ( set /A i+=1 …
user1868774
  • 93
  • 4
  • 12