Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------------
- 1. Install 7-zip and copy the "7-Zip" folder from Program Files to your MAME directory
- https://www.7-zip.org/download.html
- --------------------------------
- --------------------------------
- 2. Copy below and save as 'zip.bat' in your MAME directory
- --------------------------------
- SET CURRENTDATE=%DATE:~10,4%%DATE:~7,2%%DATE:~4,2%
- SET CURRENTTIME=%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%
- SET ZIP="%cd%\inp\%1-%CURRENTDATE%-%CURRENTTIME%.zip"
- "%cd%\7-Zip\7z.exe" a -tzip %ZIP% "%cd%\inp\%1.inp" > nul
- --------------------------------
- 3. Add the following to the bottom for your 'record.bat' file
- --------------------------------
- zip.bat %1
- ---------------------------------
- Example record.bat file
- Note. I change the %2 in the line that calls MAME to %1 (after -record)
- This means I don't need two arguments from command line (i.e. record dkong, instead of record dkong dkong)
- ---------------------------------
- @echo off
- if exist hi\%1.hi move hi\%1.hi hi\%1.bak
- if exist nvram\%1.nv move nvram\%1.nv nvram\%1.bak
- if exist diff\%1.dif move diff\%1.dif diff\%1.bak
- mame %1 -record %1.inp %3 %4 %5 %6 %7 %8 %9 -nvram_directory NUL
- if exist hi\%1.bak move hi\%1.bak hi\%1.hi
- if exist nvram\%1.bak move nvram\%1.bak nvram\%1.nv
- if exist diff\%1.bak move diff\%1.bak diff\%1.dif
- zip.bat %1
Add Comment
Please, Sign In to add comment