Preferably in AHK to aid learning.
As far as I know none of the existing programs to perform a rename function allow for this in a simple way.
We often need to rename a bunch of files or folders, where there are effectively two parts to the name. A constant across many files and a variable with no simple pattern. So they get done one at a time.
A GUI would be needed with a drop zone.
A selector for files or folders. or separate areas.
Two fields would also be required, let's call them something original, say, "Field 1" and "Field 2".
Field 1 - The constant
Field 2 - The variable
Any separators between Field 1 and Field 2 are the responsibility of the user/
Ideally Field 1 would have a history option for used values which is autosaved.
But also a clear history option should be available to avoid it growing too far.
On dropping a file or folder on the GUI the filename will be replaced with "Field 1"+"Field 2".
Whilst the file type for files remains untouched
Example:
For a file.
Existing filename = "dght62jkdkl.jpg"
Field 1 = "My New Filename - "
Field 2 = "123456
Result "My New Filename - 123456.jpg
For a folder.
Existing filename = "dght62jkdkl"
Field 1 = "My New Foldername - "
Field 2 = "123456
Result "My New Foldername - 123456
It maybe easier to have a GUI with two sides, left for folders, right for files, with their own history.
How to handle collisions? As we are only dropping 1 file and a suffix enumerator? Or just throw an error and warning notice?
Thanks in advance.