Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Renaming and file extensions
#1
Hi,

Is there a simple way to rename a file with a string, without messing with the file's extension?

For example, the macro generates a Name String like "2011-02-08_press_conference" based on user input

The above Name String will later be used to rename several different files of various types (e.g., transcript.doc becomes 2011-02-08_press_conference.doc, file00001.wav becomes 2011-02-08_press_conference.wav, dsc4006.jpg becomes 2011-02-08_press_conference.jpg) at different points throughout the macro.
.
I can write code to do this, but was wondering if I was missing a simpler way than PathFindExtension etc.

Thanks!


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)