New
#1
Help Creating "Drag & Drop" .bat file to Append File Names
I have been attempting to come up with a way to be able to drag and drop a file to append 3 letters to it. The issue is that the extent of my programming knowledge lies in VBA and not much else. While I could probably make it work in VBA, I'd prefer to not require the application to be open when it's needed - which leads me to the usage of a .bat file.
The following are examples of what I was thinking of before and after file names. It would need to append ABC after the file name, but prior to the file extension.
test1.pdf ---> test1 ABC.pdf
test2 - substr.pdf ---> test2 - substr ABC.pdf
6.9.21 test3.pdf ---> 6.9.21 test3 ABC.pdf
This will be on my office PC, so my PC specs may be different than what's in my bio, although I have a feeling it wouldn't have made much of a difference either way.
Windows 10 Pro
Version 20H2
Build 19042.985
Thanks for any assistance and your time.
- - - Updated - - -
Some additional info. My thought was the .bat file would remain on my desktop. I would select 1 or more .pdf files from any folder or location and drag them and drop them into this file. The .bat file would go to work and automatically rename them by appending 'ABC' at the end of the file name (but before the ext).
I found some topics online that are similar to my issue, but I am not familiar enough with this particular process to modify to my needs.
Batch script, file drag&drop, change extension and reload file - Stack Overflow