My question is pertaining to coding the BAT or PowerShell file, not ffmpeg commands. Also I know how to edit Windows context menu, so I'm good with that also.
I want to create a BAT or PowerShell file (whichever is easier), add a shortcut to the BAT/PS1 file via Windows's "Send To" right-click context menu, and be able to send a folder with FLAC files, or an individual FLAC file, to convert to MP3. The converted file(s) can be placed in the same directory as the FLAC files.
This is the basic BAT code I have, which doesn't work:
for /f "usebackq delims=" %%a in ("%~1") do (
[ffmpeg conversion code goes here]
)
I have no idea how to approach this. Looking for assistance. Thanks.