This allows me to run the function when I drag a file to the icon ive placed.
what happens when i drag and drop a file is: nothing. The cmd window doesn't even open with an error. Nothing happens at all. (I have tried this with {F} and {f})
It looks like you've made a "BMF" user command which then calls a command called "BMF", i.e. itself. That would potentially end up as an infinite recursion.
Having @filesfromdroponly in the user command also doesn't make sense. That needs to be in the button itself. (For a short, simple command like this, putting the whole thing in a button and not using a User Command at all is probably best.)
I found at least part (or maybe all?) of the issue.
The command editor for batch files doesn't work exactly like the cmd or a batch file would. It seems to require .exe to be used at the end of called applications.
Yeah I have no idea why it works with that change and doesn't work without it. I edited in the ".exe" to test and it launched, then removed it and it was doing nothing again.
It works without the .exe when using cmd manually, so I dont know if its the bmf.exe itself that is the issue or not.
I wonder if you are perhaps hiding common file extensions. If that is so and the file shows up on your screen as bmf.exe, then perhaps the file is actually named bmf.exe.exe.