Hardly dare to ask...
Have been trying to create a simple rename script.
Basically it works except for one thing.
Say, I select 5 files then when running the script, it will fill -both- 'Old Name' and 'New Name' boxes
with the 1st file of the list and do the rename on that file only.
When I manually blank those boxes, then all files are renamed correctly.
(There are no script errors)
Maybe it has something to do with the starting lines?
=
[code]Option Explicit
Function Rename_GetNewName ( strFileName, strFilePath, _
fIsFolder, strOldName, ByRef strNewName )[/code]
the if-endif stuff reads as follows
=
If (re37.Test(strFileName)) Then
strNewName = re37.Replace(strFileName, "$1-01-01-$3")
ElseIf (re39.Test(strFileName)) Then
strNewName = re39.Replace(strFileName, "$1-01-02-$3")
etc..
How to get the script running without filling the old and new boxes with the first file of the list?
Thanks
=