Windows 10: Help Creating "Drag & Drop" .bat file to Append File Names

Discus and support Help Creating "Drag & Drop" .bat file to Append File Names in Windows 10 Support to solve the problem; 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... Discussion in 'Windows 10 Support' started by kbdavis, Jun 9, 2021.

  1. kbdavis Win User

    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.

    :)
     
    kbdavis, Jun 9, 2021
    #1
  2. Lucasonas Win User

    BAT file/Script to find and replace files

    Greetings, streetfighter 2.

    I'll give your BAT a try. Thanks so much.

    Greetings, FordGT90Concept!

    Question:

    "So you have a directory containing both random named ZIP files and consistently named TXT files and you want to apply the TXT file naming patern to the ZIP files where the 5-digit numbers match?"

    Answer: Yes

    Question:

    Are there sub-directories?

    Answer: No

    Question:

    "Are all the ZIP file names in that pattern (#####_Example_720p.zip) and all the TXT files in that pattern (RAT_Example_#####_24f_ONO.txt)?"

    Answer: Yes

    Sorry about the terse replies, but your right: "Never assume."

    Greetings, Streetfighter 2

    I'll give your BAT a try. Thanks alot!
     
    Lucasonas, Jun 9, 2021
    #2
  3. BAT file/Script to find and replace files

    Hey all....

    Can someone help me make the BAT script in the 2nd post above to be able to use MORE than "1" file?
    As it currently is, you can only replace one particular file.

    For example, I want in the command line to be able to write two files or more, and the script will find and replace all those 2 or more named files.
    Thanks much.

    P.S.... Is there a GUI that does file searching and replacing?
    I've spent hours searching on the net, and the only thing I can find are "text" search/replace and this BAT command, not actual "file" replacing. I find this amazing. *Frown Help Creating "Drag & Drop" .bat file to Append File Names :(
     
    leeuniverse, Jun 9, 2021
    #3
  4. Help Creating "Drag & Drop" .bat file to Append File Names

    Drag and Drop

    Hi Charles,

    the steps you suggested didn't work for me but, when pressing the escape key it somehow expanded the drive and by using drag and drop to the single file in the list worked.

    In the past I could drag and drop multiple folders onto the drive on the network computer(s). Doing it on individual folders will take far too long and time consuming and is not an option.

    Microsoft should be able to identify what is blocking it and issue a fix.

    My machine is multi boot so tomorrow I will try with Windows 7.

    Many thanks for your help,

    Deric
     
    DericStain, Jun 9, 2021
    #4
Thema:

Help Creating "Drag & Drop" .bat file to Append File Names

Loading...
  1. Help Creating "Drag & Drop" .bat file to Append File Names - Similar Threads - Help Creating Drag

  2. Drag and Drop Windows / Files

    in Windows 10 Gaming
    Drag and Drop Windows / Files: In Windows 10, you could have an application open and maximized such as a Word Document, PDF, etc. and you could just drag and drop it to another area, such as the 2nd screen without any issues. As soon as you clicked to drag it, it would just minimize itself not minimize as...
  3. Drag and drop freezing files

    in Windows 10 Software and Apps
    Drag and drop freezing files: Same problem as hereNew tab reddit.comWhat i do:1 Repair windows files2 Recovery windows3 update windows4 Reset windows5 Custon install windows6 Full wipe and then install windows.7 Full clean install and then reset for "factory" windows...NOTHING... Please help...
  4. Create .bat File to Append Substring to Drag & Dropped Filenames

    in Windows 10 Network and Sharing
    Create .bat File to Append Substring to Drag & Dropped Filenames: I have cross posted this question on another forum. Please check there first to ensure this question hasn't already been answered.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 after a space. The issue is that the...
  5. file explorer drag and drop

    in Windows 10 Network and Sharing
    file explorer drag and drop: After my last update there is no right pane in the file explorer to drag and drop files. Please advise. https://answers.microsoft.com/en-us/windows/forum/all/file-explorer-drag-and-drop/f2190733-2938-485c-880e-58d172f73f16
  6. Drag and drop files

    in Windows 10 BSOD Crashes and Debugging
    Drag and drop files: i have a touch pad thing and i cant drag and drop files into a diffrent folder how do i do this please help me, https://answers.microsoft.com/en-us/windows/forum/all/drag-and-drop-files/834e0054-f3ba-477b-839c-d09481300874
  7. Unable to drag and drop files

    in Windows 10 Network and Sharing
    Unable to drag and drop files: I use MacOS Catalina 10.15. and have an issue with drag and drop files into the OneDrive sidebar folder in Finder. I've given access to my entire disk in Security & Privacy, but it still won't work. Any suggestions?...
  8. need help creating a file/folder listing *.bat file

    in Windows 10 Support
    need help creating a file/folder listing *.bat file: pretty much as the subject states, l had one in the past but l cant remember where l put it and forget how it was written. basically l just want a script that lists files and folders in a specific directory without listing the sub folders within that dir (just a bog standard...
  9. Drag & Drop file increment?

    in Windows 10 Support
    Drag & Drop file increment?: Is there a way I can change the behaviour of drag and drop files in file explorer so that if the file exists its filename is extended by an incremented number. (Sorry, that sounds confusing). e.g. drag abc.jpg on c:\ to abc.jpg on f:\. If abc.jpg on f:\ already exists then...
  10. Drag and drop files

    in Windows 10 Support
    Drag and drop files: [img] when dragging files in win 10 the icon is so big that u can not see where u r dragging to. Is there a way to turn this feature off ? IN THE SCREEN CAPTURE WHEN I DRAG A FILE THIS ICON GOES WITH THE DRAGGING FILE AND MAKE IT HARD TO SEE WHERE YOU ARE DROPPING IT....