>>659
例えばこんな感じ

%MAME_EXE% %ROM_NAME% -seconds_to_run %PLAY_TIME% && rmdir /s /q %MAME_PATH%\snap\%ROM_NAME%