How to Add text string at the End or the Selected file or Folder Name?
Example: want to add the string "Khalid Hossain"
Example Folder or File Name: My Test File name
Result want: My Test File name Khalid Hossain
Rename PATTERN="My Test File name" TO="My Test File name Khalid Hossain"
"My Test File name" is not a fixed name, each file name is different. I Have tried to pass the file name with
Rename PATTERN="{file$}" TO="{file$} [Khalid Hossain]"
But Problem is this method doesn't ignore the file extension.
Ok I have tried to write a rename script
function OnGetNewName(getNewNameData)
{
var item = getNewNameData.item.name_stem;
//DOpus.Output (item); Selected files old name print without extension as I want
Rename TO= item &" khalid";
}
What should I write in the place of Rename TO=
?
how to tell a script for execute the Rename command?
No need for a script for something this simple:
rename pattern * to "* Khalid Hossain" ignoreext
1 Like
Thanks Jon, But If you just tell me how to tell a script for execute the Rename command? I will loved that answer.