02-08-2011, 02:49 PM
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!
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!
