w10install/optional/unpack-mame.cmd
2021-03-11 00:23:58 +01:00

40 lines
706 B
Batchfile

@echo off
set T=c:\TEMP
set TOOLS=c:\tools
set ZIP=..\software\mame64.7z
set TARGET=c:\MAME
if NOT EXIST %ZIP% (
echo ERROR: %ZIP% not found!
exit /b
)
echo ####### %0 #######
echo killing MAME64 processes...
taskkill /F /IM hakchi.exe 2>nul
rem create directory ...
mkdir %TARGET% 2>nul
echo unpacking MAME64 ...
%TOOLS%\7z x -y -aoa -o%T%\mame %ZIP%
echo moving files ...
move /Y %T%\mame\mame64.exe %TARGET%
move /Y %T%\mame\mame64.sym %TARGET%
mkdir %TARGET%\roms 2>nul
rd /S /Q %T%\mame
echo.
echo copy desktop link ...
copy /Y desktop\MAME64.lnk "%PUBLIC%\Desktop"
rem refresh desktop (W10 style)
ie4uinit.exe -show
echo ####### %0 #######
pause