-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathempaqueta NMI.bat
116 lines (98 loc) · 3.24 KB
/
empaqueta NMI.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
@ECHO OFF
SET VERSION=20
SET SRC=%USERPROFILE%\Desktop\v%VERSION%
SET DST=%USERPROFILE%\Desktop\Paquete
SET PKG1=nmi_v0.0.%VERSION%
SET PKG2=custom_v0.0.%VERSION%
SET PKG3=esxdos089
::
if exist "%DST%\%PKG1%\" (
rd /q /s %DST%\%PKG1%
)
mkdir %DST%\%PKG1%
mkdir %DST%\%PKG1%\BIN
mkdir %DST%\%PKG1%\SYS
mkdir %DST%\%PKG1%\SYS\NMI
if exist "%DST%\%PKG2%\" (
rd /q /s %DST%\%PKG2%
)
mkdir %DST%\%PKG2%
if exist "%DST%\%PKG3%\" (
rd /q /s %DST%\%PKG3%
)
XCOPY /E /Q /H /Y "%DST%\%PKG3%-org" "%DST%\%PKG3%\" > NUL
mkdir %DST%\%PKG3%\SYS\NMI
::
if exist "%DST%\%PKG1%.zip" (
del /q %DST%\%PKG1%.zip
)
if exist "%DST%\%PKG2%.zip" (
del /q %DST%\%PKG2%.zip
)
if exist "%DST%\%PKG3%.zip" (
del /q %DST%\%PKG3%.zip
)
::
COPY /Y "%SRC%\_nmi\nmi.sys" "%DST%\%PKG1%\sys\nmi.sys" > NUL
if errorlevel 1 goto ERROR
COPY /Y "%SRC%\_nmi\nmi.sys" "%DST%\%PKG3%\sys\nmi.sys" > NUL
if errorlevel 1 goto ERROR
echo copied nmi.sys
::for %%i in (hexview,drives,rm) do (
for %%i in (hexview,drives,rm,ramview,pages) do (
COPY /Y "%SRC%\.%%i\%%i" "%DST%\%PKG1%\bin\%%i" > NUL
if errorlevel 1 goto ERROR
COPY /Y "%SRC%\.%%i\%%i" "%DST%\%PKG3%\bin\%%i" > NUL
if errorlevel 1 goto ERROR
echo copied %%i
)
::for %%i in (config,custom,debug,delete,enter,fastcfg,fastload,help,init,loadold,lock,poke,reload,rename,reset,savesna,seldrv,tapein,tapeout,trd2drv,view) do (
for %%i in ()
COPY /Y "%SRC%\%%i\%%i" "%DST%\%PKG1%\sys\nmi\%%i" > NUL
if errorlevel 1 goto ERROR
COPY /Y "%SRC%\%%i\%%i" "%DST%\%PKG3%\sys\nmi\%%i" > NUL
if errorlevel 1 goto ERROR
echo copied %%i
)
::for %%i in (nmi.cnf,fastcfg.txt,TRDN.tap,old085.sys,old086.sys,old087.sys,old088.sys,old089.sys,help1.scr,help2.scr,help3.scr) do (
for %%i in (nmi.cnf,fastcfg.txt,old085.sys,old086.sys,old087.sys,old088.sys,old089.sys,help1.scr,help2.scr,help3.scr,TRND.BAS) do (
COPY /Y "%SRC%\_support\%%i" "%DST%\%PKG1%\sys\nmi\%%i" > NUL
if errorlevel 1 goto ERROR
COPY /Y "%SRC%\_support\%%i" "%DST%\%PKG3%\sys\nmi\%%i" > NUL
if errorlevel 1 goto ERROR
echo copied %%i
)
for %%i in (128,mon,ownrom) do (
COPY /Y "%SRC%\_support\%%i" "%DST%\%PKG1%\bin\%%i" > NUL
if errorlevel 1 goto ERROR
COPY /Y "%SRC%\_support\%%i" "%DST%\%PKG3%\bin\%%i" > NUL
if errorlevel 1 goto ERROR
echo copied %%i
)
for %%i in (rtc.sys) do (
COPY /Y "%SRC%\_support\%%i" "%DST%\%PKG1%\sys\%%i" > NUL
if errorlevel 1 goto ERROR
COPY /Y "%SRC%\_support\%%i" "%DST%\%PKG3%\sys\%%i" > NUL
if errorlevel 1 goto ERROR
echo copied %%i
)
COPY /Y "%SRC%\custom\*.*" "%DST%\%PKG2%\" > NUL
if errorlevel 1 goto ERROR
echo copied custom
COPY /Y "%SRC%\_support\README.txt" "%DST%\" > NUL
if errorlevel 1 goto ERROR
COPY /Y "%SRC%\_support\README.txt" "%DST%\%PKG1%\" > NUL
if errorlevel 1 goto ERROR
COPY /Y "%SRC%\_support\README.txt" "%DST%\%PKG3%\" > NUL
if errorlevel 1 goto ERROR
echo copied README.txt
"%ProgramW6432%\7-Zip\7z.exe" a -r -y "%DST%\%PKG1%.zip" "%DST%\%PKG1%\*" > NUL
echo created %DST%\%PKG1%.zip
"%ProgramW6432%\7-Zip\7z.exe" a -r -y "%DST%\%PKG2%.zip" "%DST%\%PKG2%\*" > NUL
echo created %DST%\%PKG2%.zip
"%ProgramW6432%\7-Zip\7z.exe" a -r -y "%DST%\%PKG3%.zip" "%DST%\%PKG3%\*" > NUL
echo created %DST%\%PKG3%.zip
PAUSE
EXIT /B
:ERROR
PAUSE