DonationCoder.com Software > Post New Requests Here
IDEA: Drag and Drop Rename
magician62:
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.
c.gingerich:
Couple questions...
1) I don't know Autohotkey but I can make it in another language called Visual Dialogscript. LMK if you are OK with that.
2) When drag/drop a folder, is it to just rename the folder or all the files in the folder?
c.gingerich:
Finished the first go :-) Once I hear back on the questions I'll post the DL link. As it is, it only renames 1 file or folder at a time, it just renames the folder an no files under it. I think that is what you were after but not sure.
IDEA: Drag and Drop Rename
magician62:
Couple questions...
1) I don't know Autohotkey but I can make it in another language called Visual Dialogscript. LMK if you are OK with that.
2) When drag/drop a folder, is it to just rename the folder or all the files in the folder?
-c.gingerich (September 24, 2021, 02:33 PM)
--- End quote ---
The only reason AHK was I am slowly picking up on bits of how it works, And seeing how to do something I understand helps with learning.
Applicable to the item dropped, not recursive through lower levels.
Example of application.
We have been scanning old paperwork, but as the scanner is auto feed it gives a simple sequential filename. Where there are multiple pages to a document we drop them in a folder. Often just generate 100 empty folders, you know New Folder and New Folder - Copy etc..:)
We then zip or rar the folder and change the filename to cbz cbr and use a comicbook reader CDisplay for viewing
c.gingerich:
Ok, well here is my version written in VDS if you want to use/test it.
https://theblindhouse.com/downloads/DDRename.zip
Navigation
[0] Message Index
[#] Next page
Go to full version