MAME requires a specific folder structure to find files.
This is a step many beginners skip, leading to frustration. mame 0239 roms install
Generate or edit mame.ini:
Windows (Command Prompt):
cd C:\MAME
mame.exe -createconfig
Linux/macOS:
./mame -createconfig
Edit mame.ini and set:
rompath roms