Author Topic: Pre-pending to filenames  (Read 4470 times)

Offline Eric

  • Sr. Member
  • ****
  • Posts: 264
    • View Profile
Pre-pending to filenames
« on: October 20, 2008, 12:39:06 PM »
OK I'm sure that I'm missing it somewhere. I'd like to pre-pend the {datesort} to the existing filenames in a folder. The files are already sequenced  my_big_toe_001.jpg   my_big_toe_002.jpg    my_big_toe_003.jpg  all I want to do is add a date and maybe one more variable. How?

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Pre-pending to filenames
« Reply #1 on: October 20, 2008, 02:02:27 PM »
Eric,

OK I'm sure that I'm missing it somewhere. I'd like to pre-pend the {datesort} to the existing filenames in a folder. The files are already sequenced  my_big_toe_001.jpg   my_big_toe_002.jpg    my_big_toe_003.jpg  all I want to do is add a date and maybe one more variable. How?

Just use:

{datesort}{filenamebase}

That should do it.

-Kirk

Offline Eric

  • Sr. Member
  • ****
  • Posts: 264
    • View Profile
Re: Pre-pending to filenames
« Reply #2 on: October 21, 2008, 06:35:25 AM »
Thank You

Offline Eric

  • Sr. Member
  • ****
  • Posts: 264
    • View Profile
Re: Pre-pending to filenames
« Reply #3 on: October 22, 2008, 12:36:47 PM »
Kirk That did work but.....

I have had this happen in the past when renaming and just had it happen again. Half of the folder was named as expected the res have a ###_temp and a number thrown in. IE

20081019-15040000-_###_TMP_00091_Wellesley Peewee B vs Belmont Peewee B-0092.jpg    Where is the _###_TMP_00091_ coming from and how do I stop it ?  Originally the file was named "Wellesley Peewee B vs Belmont Peewee B-0092.jpg"

Eric

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Pre-pending to filenames
« Reply #4 on: October 22, 2008, 02:05:49 PM »
Eric,

Kirk That did work but.....

I have had this happen in the past when renaming and just had it happen again. Half of the folder was named as expected the res have a ###_temp and a number thrown in. IE

20081019-15040000-_###_TMP_00091_Wellesley Peewee B vs Belmont Peewee B-0092.jpg    Where is the _###_TMP_00091_ coming from and how do I stop it ?  Originally the file was named "Wellesley Peewee B vs Belmont Peewee B-0092.jpg"

What would the final name have been?
What filesystem are you renaming on?
What OS are you running?
What version of Photo Mechanic are you running?

-Kirk

Offline Eric

  • Sr. Member
  • ****
  • Posts: 264
    • View Profile
Re: Pre-pending to filenames
« Reply #5 on: October 23, 2008, 06:27:11 AM »
The final name should have been :
20081019-15040000-Wellesley Peewee B vs Belmont Peewee B-0092.jpg    and was for the first 91 files.

The ###_TMP_00091 only shows up form 92 to 280. I renamed 13000 files and this only happened on one folder this time. But I have had it happen in the past. No biggie any other time, as I just renamed the folder again and the issue resolved. This time I need to keep the sequences intact and didn't want to risk mixing things up.

OS is Windows XP pro
NTFS
PM ver 4.5.3.2