Hi @Pr0FiT!!!
This is my actual command line for launching Mame on Launchbox: mameuifx64.exe -nowindow -joy -skip_gameinfo -record ROMNAME.inp Archivo
As you see I want to record my plays in a .inp file, but need to replace ROMNAME with the name of the rom launched. I've tryied [romname] "[romname]" and some other variants, but nothing seems work to replace this variable with the rom name of the game launched.
Note: my Launchbox installation is in Spanish, this is why you see the word Archivo at the end of the line instead of File.