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. 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...
  3. 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
  4. 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
  5. 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?...
  6. Unable to drag and drop files into a zip file

    in Windows 10 Network and Sharing
    Unable to drag and drop files into a zip file: Under File Explorer I cannot drag and drop a file into a pre-created zip file no longer. This feature used to work but now I am unable even to highlight the zip file...
  7. 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...
  8. Help with a .bat file.

    in Windows 10 Support
    Help with a .bat file.: I have this .bat file that I've been messing around with: [img] I got it to open the Windows Update interface: [img] However, I need the .bat file to go a step further and auto click the Check for updates button circled in orange. Can someone help me to finish...
  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....