Renaming files to set names.

Dell / Dell xps710
September 17, 2009 at 02:42:09
Specs: Microsoft Windows XP Professional, 2.66 GHz / 2045 MB
Hi, I have a 3D render scene for lighting studys. each time I press render I get a folder with 24 .jpg's named:
Render_frame_000, 001, 002etc with I would like to rename Light_study_0am, 1am, 2am etc. The rendered frames willl always come out with the same names, so i would like to be able to drop a .bat file in the said folder to rename them.
This is what iv started out with:

@echo off
title Renamer
rename Render_frame_001.jpg %Light_study_6am%.jpg
rename Render_frame_002.jpg %Light_study_7am%.jpg
rename Render_frame_003.jpg %Light_study_8am%.jpg
rename Render_frame_004.jpg %Light_study_9am%.jpg

but I get "the system cannot find file specified" I know this is a very noob question but when it comes to coding I am..
Any help would be greatly appreciated.
thanks Simon

See More: Renaming files to set names.

Report •

September 17, 2009 at 03:17:02
Hi, quick update. Replacing "rename Render_frame_001.jpg %Light_study_6am%.jpg" with "REN Render_frame_001.jpg Light_study_1am.jpg" seems to do the trick.
thanks for looking.

Report •

September 17, 2009 at 06:08:34
The % signs are used for variable substitution. I don't think you need them in your case. As you have found out yourself, it works when you remove them.

Report •

Related Solutions

Ask Question