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
3 answers

Shell Script Rename

Now I have the rename script like this: cd /Users/KanZ/Desktop/Project/Test/ n=1 for file in *.jpg; do echo $file prefix=M file_name=M$n.jpg echo $file_name n=$(( $n+1 )) mv $file $file_name done The first if I run…
kantawit
  • 101
  • 1
  • 1
  • 6
0
votes
1 answer

search and replace file names - bug fix

I have a script that changes particular string within files names (the file stores in "my_folder"): Set objFso = CreateObject("Scripting.FileSystemObject") Set Folder = objFSO.GetFolder("g:\my folder") For Each File In Folder.Files sNewFile =…
0
votes
1 answer

batch search and replace folders names

i'm using batch file (named as folder.bat) to add the string "_v0_1" for each foler name under "my folder" (i have about 100 folders under "my folder") I'm calling my batch (folder.bat) from a onother batch file that contains this rows(for…
0
votes
2 answers

how to serach and replce only exact string case within a file

I have a "search & replace within a file" script that works, but not as I expect. It has 2 problems: it changes the oldtext with newtext regadless if the old text has more strings after it: I want to avoid this situation! i'm calling that scrip…
0
votes
1 answer

How to reorganize and rename files within project without breaking all connections/links?

I have general web project including images, scripts and styles and I would like to reorganize entire project without breaking it. Change folder structure Change file names and keep all links/connections working. // I am using Sublime 2 text…
Pavel Binar
  • 2,096
  • 5
  • 16
  • 26
0
votes
2 answers

How to rename all the pictures on a folder to it's timestamp. MM-DD-YY hh:mm:ss

I have a lot of folders with pictures on server, the file names are random and a lot, but every file is a jpg. I need to rename every file on any given folder to the information on the timestamp. Example. File names 1.jpg , 2.jpg After convention…
0
votes
1 answer

Toggle extensions via bat or vbs

I need to quickly toggle the extension of all files contained in a specific folder. Suppose that C:\My Folder\ contains 200 files (all .txt). BY EXECUTING THE SCRIPT I change them all to .xml and then BY EXECUTING THE SAME SCRIPT AGAIN I change them…
Eta Beta
  • 157
  • 1
  • 3
  • 11
0
votes
1 answer

Batch Increment File Name from Remote Folder

I want to Rename a .TXT file with the date & auto increment number in a windows batch, or powershell script. I.E. 20121004ABC.txt, 20121004ABC_02.txt, 20121004ABC_03.txt. . . The tricky part is these files get moved to a different folder when they…
phenicie
  • 637
  • 8
  • 14
0
votes
1 answer

Rename a file and move a level up

I'm trying to write a script that will go through a director structure like: school/admission/english->index.html It should rename index.html to english.html which is it's parent folder and move it a level up so that the result would be…
Vinit
  • 1,815
  • 17
  • 38
0
votes
2 answers

Batch: Rename multiple files using input string

I am trying to rename files after the user inputs a string they want to remove from the file name. This works fine except when I want to rename files that are in a different location than the script: Here is what i have so far which works if I dont…
user1130511
  • 243
  • 1
  • 7
  • 18
0
votes
1 answer

Renaming a file after IF EXIST check within ++ FOR loop in a Windows batch file?

I scoured the web and could not find the exact code I'm looking for... I found things that are very similar but did not get them to work. Here is a rough idea what I want: int i = 1; FOR (i; i < 9999; i++) IF EXIST filename.log THEN REN…
user1502648
0
votes
1 answer

Excel pricing matrix provided without decimals

Is it odd that a pricing matrix is provided without decimals? For example, a product measuring 23 x 42 shows to be 114 but it's actually supposed to be 11.40. Another measurement is 28 x 48 and according to the matrix would be 696 but should be…
LITguy
  • 623
  • 4
  • 13
  • 39
0
votes
2 answers

Change file names in windows folders

Hi I am trying to change the files names in some of my folders in windows machine. I have bunch of files with files names starting with caiptal letter example "Hello.html" but i want to change that to "hello.html" since there are like thousands of…
oortcloud_domicile
  • 840
  • 6
  • 21
  • 41
0
votes
1 answer

File renaming batch script

I'm trying to rename a bunch of files, and I can either do it by hand, or by a batch script. Batch script would be insanely easier. I need the script to rename all of the files in a folder to have a surname + index. So the output would look like…
user1132897
  • 1,201
  • 1
  • 15
  • 27
0
votes
1 answer

Transform File Names based on a simple rule

i would like to trim file names in batch for eg: From "This IsGood 1.1.png" To "tig11.png" The condition is that the script should get all capitalized letter from the file name,convert them into small letters and then form the trimmed file name…
gocool
  • 3
  • 1