So, I'm trying to convert a bunch of OGG files to M4A using a program called Super. Only problem is that this program adds the extension you're trying to convert to after the source extension.
So, if I convert a file named Keyboard.ogg to an M4A file, it converts it to an M4A, but the resulting file name is Keyboard.ogg.M4A.
What I want to do is when the conversion finishes, I want to run a command or batch script on every file ending in .ogg.M4A so that the result is Keyboard.m4a instead of Keyboard.ogg.M4A (The file extension should be lower case since a program I am using to develop a video game requires both .ogg and .m4a files for exports (since it uses OGG for PC exports and M4A for Mobile exports) and I think it might be case sensitive.)
I have tried the solution here, but when using %%~nf it only removes the .M4A part (instead of the .ogg.M4A) and if I were to rename that I'd be back at square 1.