This will allow you to keep your filenames.
Say you are doing all jpegs in c:\documents and settings\david candy\my documents\my pictures.
Create the two files in C:\program files
File 1 (two or three lines) but to make life easy we'll add one line (else the %~ will get even more complex and longer).
------------------------------------------
cd c:\documents and settings\david candy\my documents\my pictures
Set X=0
for %%A IN (*.jpg) Do Call "c:\program files\RenFile" %%A
File 2 (RenFile.bat) (two lines)
-------------------------------------------
set /a x=x+1
ren "%1" "%x%%~n1%~x1"
%1 is the file the batch file is working on passed by the first batch file (it's %%A in the first batch file)
%x% is our counter that is incremented by 1 each time renfile is called (the x=x+1 part)
%~n1 is a %1 but the ~n means just the name of it
%~x1 is %1 but the ~x means just the dot and extension
These are ways of breaking up the file name into parts. As we wish to insert numbers into the middle of a fully qualified path (eg c:\somefolder\<insert number>originalname.ext) we need to break it into pieces.
The upcoming replacement for this is even more bizzare.
Normally one would run these commands from the command prompt but I changed it a bit so dbl clicking file1 will do. Normally you type the first line of file 1 by hand then run the command. Then it work whereever you want, you'll have to edit file 1 if wanting to do a different folder (and remember that MY My Pics folder not yours so change it to yours)
--
--
--------------------------------------------------------------------------------------------------
Read David defending the concept of violence.
http://margokingston.typepad.com/har...e_ga.html#more
=================================================
"Yves Alarie" <rd50@@pitt.edu> wrote in message news:%23pYPjWj%23FHA.2464@TK2MSFTNGP15.phx.gbl...
> It looks like you want each photo file to have a description of an event as
> the file name. However, XP will sort (or list) files by
> numerical/alphabetical order. So your files will be listed in your folder
> (and on a CD) as follows:
>
> after baby arrive
> having baby
> photo of mommy pregnant
>
> Obviously not the correct order, but a is before h and h is before p. What
> you want to do to have them in the "your" order, but still keep a different
> name for each file, is to add a number and then a space in front of your
> names. Right click on the photo and click on Rename on the opening menu.
> Then type in:
> 001 photo of mommy pregnant
> 002 having a baby
> 003 after baby arrive
> for each of your file. Then the number in front will control the order, not
> the name of the event.
>
> To do this with photos "out of your order", open the folder. Move the
> thumbnails with your mouse to place them in the order you want. Then start
> renaming by right click on the first thumbnail and click on Rename and add
> 001 and a space in front of the first one, etc.
>
>
> "Gladys222" <Gladys222@discussions.microsoft.com> wrote in message
> news
EBC4611-19E8-4955-B9FB-066A107D1E47@microsoft.com...
>> Hello, when I put my photos in my pictures, they are put in individual
>> folders and in the order I like. Like, photo of mommy pregnant, having
> baby,
>> after baby arrives. My order. Well, when I back them up to a cd they are
> put
>> in a different order, unorganized. How do I keep them in the order I
> prefer
>> when I backup my pictures. I have windows xp home edition. Thank you for
> your
>> time.
>
>