@rem You will need the following to extract .ZIP, .Z, .CAB, .1, .LZH :
@rem ftp://ftp.elf.stuba.sk/pub/pc/pack/stix.zip (49K)
@rem ftp://ftp.elf.stuba.sk/pub/pc/pack/e_wise.zip (96K)
@rem ftp://ftp.elf.stuba.sk/pub/pc/pack/icomp95.zip (60K)
@rem ftp://ftp.elf.stuba.sk/pub/pc/pack/i5comp21.rar (95K)
@rem ftp://ftp.elf.stuba.sk/pub/pc/pack/unz550x3.exe (244K)
@rem ftp://ftp.cdrom.com/pub/simtelnet/msdos/arcers/lha255e.exe (64K)
@rem ftp://ftp.cdrom.com/pub/simtelnet/msdos/arcers/pk250dos.exe (202K)
@rem
@if "%1"=="" echo Usage: "make_bin SourceDirectory\" (205 zips,184938379 bytes)
@if "%1"=="" goto end
@if "%1"=="final" goto final

md astronmy
cd astronmy
PKUNZIP %1astronmy\*.zip <..\astronmy.dat
md a1
cd a1
unzip32 -j ..\*.zip <..\..\astronm2.dat
ren gr_test.mak ?_*.*
ren gr_ibmpc.c  ?_*.*
ren gr.h        ?_*.*
ren gr_spec.c   ?_*.*
ren gr_test.c   ?_*.*
ren tw.h        ?-*.*
ren *.* _*.*
move /-Y *.* ..
cd ..
del *.zip
if "%2"=="del!" del %1astronmy\*.zip

md ..\chem
cd ..\chem
unzip32 -j %1chem\*.zip <..\chem.dat
md a1
cd a1
unzip32 -j ..\elemmake.zip
ren *.* ?_*.*
unzip32 -j ..\elemocx.zip
unzip32 -j ..\elemview.zip
ren ??????32.ocx ?_*.*
move /-Y *.* ..
extract /a /e /y ..\setup1.cab
ren file_id.diz file_idz.diz
ren readme.txt  readme_z.txt
ren order.frm   order_.frm
move /-Y *.* ..
icomp ..\_setup.1   .\ -i -d -ox
icomp ..\_setup_.1  .\ -i -d -ox
icomp ..\_setup_4.1 .\ -i -d -ox
icomp ..\_setup_7.1 .\ -i -d -ox
icomp ..\_setup_9.1 .\ -i -d -ox
icomp ..\_setup.2   .\ -i -d -ox
icomp ..\data.z     .\ -i -d -ox
ren *.txt ?????_*.*
ren shared\*.* ????_*.*
ren group1\*.txt ????_*.*
move /-Y gnuplot\*.* ..
move /-Y program\*.* ..
move /-Y samples\*.* ..
move /-Y help\*.* ..
move /-Y shared\*.* ..
move /-Y group4\*.* ..
move /-Y group3\*.* ..
move /-Y group2\*.* ..
move /-Y group1\*.* ..
move /-Y *.* ..
icomp ..\_setup.LIB   .\ -i -d -ox
ren *.* ?????0*.*
move /-Y *.* ..
icomp ..\_setup_.LIB  .\ -i -d -ox
ren *.* ?????1*.*
move /-Y *.* ..
icomp ..\_setup_2.LIB .\ -i -d -ox
ren *.* ?????2*.*
move /-Y *.* ..
icomp ..\_setup_4.LIB .\ -i -d -ox
ren *.* ?????4*.*
move /-Y *.* ..
icomp ..\_setup_7.LIB .\ -i -d -ox
ren *.* ?????7*.*
move /-Y *.* ..
icomp ..\_setup_9.LIB .\ -i -d -ox
ren *.* ?????9*.*
move /-Y *.* ..
cd ..
del *.1
del *.2
del *.cab
del *.z
del *.zip
del _setup*.lib
if "%2"=="del!" del %1chem\*.zip

md ..\font
cd ..\font
unzip32 -j %1font\*.zip <..\font.dat
ren license.txt LICENSE2.TXT
ren README.DOC README_.DOC
ren README.RTF README_.RTF
unzip32 -j disk1.psz
del disk1.psz
md a1
cd a1
icomp ..\_setup.1 .\ -i -d -ox
ren group1\readme.txt README_Z.TXT
icomp ..\_setup_.1  .\ -i -d -ox
icomp ..\_setup_1.1 .\ -i -d -ox
icomp ..\_setup_b.1 .\ -i -d -ox
icomp ..\_setup_o.1 .\ -i -d -ox
ren group1\readme.txt  README0Z.TXT
ren group1\license.txt LICENSEZ.TXT
ren group1\file_id.diz FILE_IDZ.DIZ
move /-Y group1\*.* ..
move /-Y group2\*.* ..
i5comp x ..\data1.cab
i5comp x ..\_sys1.cab
i5comp x ..\_user1.cab
ren *.txt ??????__.*
move /-Y *.* ..
icomp ..\_setup.LIB   .\ -i -d -ox
ren *.* ?????0*.*
move /-Y *.* ..
icomp ..\_setup_.LIB  .\ -i -d -ox
ren *.* ?????1*.*
move /-Y *.* ..
icomp ..\_setup_1.LIB .\ -i -d -ox
ren *.* ?????2*.*
move /-Y *.* ..
icomp ..\_setup_b.LIB .\ -i -d -ox
ren *.* ?????3*.*
move /-Y *.* ..
icomp ..\_setup_o.LIB .\ -i -d -ox
ren *.* ?????4*.*
move /-Y *.* ..
unzip32 -j ..\fontrang.exe
ren *.* ???5*.*
move /-Y *.* ..
unzip32 -j ..\fontran_.exe
ren *.* ???6*.*
move /-Y *.* ..
unzip32 -j ..\setup__.exe
ren *.* ????7*.*
move /-Y *.* ..
unzip32 -j ..\setup_0.exe
ren *.* ????8*.*
move /-Y *.* ..
unzip32 -j ..\setup_p.exe
ren *.* ????9*.*
move /-Y *.* ..
E_WISE_D ..\setup.exe .\
ren *.* a*.*
move /-Y *.* ..
E_WISE_D ..\setup_.exe .\
ren *.* b*.*
move /-Y *.* ..
E_WISE_D ..\setup_f.exe .\
ren *.* c*.*
move /-Y *.* ..
E_WISE_D ..\setup_r.exe .\
ren *.* d*.*
move /-Y *.* ..
E_WISE_D ..\symsel2.exe .\
ren *.* e*.*
move /-Y *.* ..
E_WISE_D ..\symsel2_.exe .\
ren *.* f*.*
move /-Y *.* ..
E_WISE_D ..\fontfind.exe .\
ren *.* g*.*
move /-Y *.* ..
E_WISE_D ..\MailTa~1.exe .\
ren *.* h*.*
move /-Y *.* ..
cd ..
del *.1
del *.cab
del _setup*.lib
REN fc111.bmp fc11.bmp
REN logo33.bmp logo3.bmp
if "%2"=="del!" del %1font\*.zip

md ..\graphics
cd ..\graphics
unzip32 -j %1graphics\*.zip
md a1
cd a1
i5comp x ..\data1.cab
i5comp x ..\_sys1.cab
i5comp x ..\_user1.cab
ren *.txt ??????_.*
move /-Y *.* ..
cd ..
del *.cab
if "%2"=="del!" del %1graphics\*.zip

md ..\lang
cd ..\lang
unzip32 -j %1lang\kh500us.zip
ren *.gif ????_*.GIF
md a1
cd a1
unzip32 -j ..\f*.zip
del ..\f*.zip
ren *.wav ???_*.wav
unzip32 -j ..\*.zip <..\..\lang.dat
move /-Y *.* ..
cd ..
del *.zip
if "%2"=="del!" del %1lang\*.zip

md ..\mapping
cd ..\mapping
unzip32 -j %1mapping\*.zip <..\mapping.dat
md a1
cd a1
unzip32 -j ..\*.zip
move /-Y *.* ..
cd ..
del *.zip
if "%2"=="del!" del %1mapping\*.zip

md ..\proj
cd ..\proj
unzip32 -j %1proj\*.zip
unzip32 -j tm2kt728.exe
del	tm2kt728.exe
if "%2"=="del!" del %1proj\*.zip

md ..\science
cd ..\science
unzip32 -j %1science\sky3d20.zip
ren readme.txt README1.TXT
unzip32 -j %1science\snbas212.zip
ren readme.txt README_.TXT
unzip32 -j %1science\digatm.zip
md a1
cd a1
icomp ..\_setup.1 .\ -i -d -ox
ren group1\readme.txt readme__.txt
move /-Y group1\*.* ..
move /-Y group2\*.* ..
move /-Y group5\*.* ..
move /-Y group6\*.* ..
stix_d ..\snbas212.exe .\
move /-Y DISK1\*.* .
icomp _setup.1 .\ -i -d -ox
ren setup.* setup_.*
ren _*.* __*.*
ren *.id *.id_
ren readme.htm readme_.htm
move /-Y group1\*.* ..
move /-Y group2\*.* ..
move /-Y group3\*.* ..
move /-Y group4\*.* ..
move /-Y group5\*.* ..
move /-Y group6\*.* ..
move /-Y group7\*.* ..
move /-Y group8\*.* ..
move /-Y group9\*.* ..
move /-Y group10\*.* ..
move /-Y group11\*.* ..
move /-Y group12\*.* ..
move /-Y group13\*.* ..
move /-Y group14\*.* ..
move /-Y group15\*.* ..
move /-Y *.* ..
cd ..
del *.1
del snbas212.exe
if "%2"=="del!" del %1science\*.zip

md ..\winhelp
cd ..\winhelp
unzip32 -j %1winhelp\*.zip <..\winhelp.dat
md a1
cd a1
icomp ..\_setup.1 .\ -i -d -ox
ren group1\readme.txt README_C.TXT
move /-Y group1\*.* ..
icomp ..\_setup.lib .\ -i -d -ox
ren setup.ini SETUP_.INI
move /-Y *.* ..
lha x ..\*.lzh
ren silogo.ico SILOGO_.ICO
move /-Y *.* ..
unzip32 -j ..\d_en3wh.exe <...\winhelp2.dat
ren license.txt licensee.txt
ren readme.txt readme_e.txt
move /-Y *.* ..
unzip32 -j ..\far_inst.exe
move /-Y *.* ..
E_WISE_D ..\dothlp~1.exe .\
ren *.* a*.*
move /-Y *.* ..
E_WISE_D ..\HELPX_1D.exe .\
ren *.* d*.*
move /-Y *.* ..
E_WISE_D ..\HLPX13SE.exe .\
ren *.* e*.*
move /-Y *.* ..
cd ..
del _setup.lib
del _setup.1
del *.lzh
del dothlpsetup.exe
del d_en3wh.exe
if "%2"=="del!" del %1winhelp\*.zip

md ..\xwindows
cd ..\xwindows
unzip32 -j %1xwindows\*.zip
md a1
cd a1
unzip32 ..\100dpi
del ..\100dpi.zip
unzip32 -j ..\*.zip <..\..\xwindow2.dat
cd fonts\100dpi
ren *.* ?_*.*
move /-Y *.* ...
cd ...
move /-Y *.* ..
cd ..
del *.zip
if "%2"=="del!" del %1xwindows\*.zip

@echo Run shell like FAR 1.*, sort files by NAMES, and manually, using shell:
@echo 1) rename *.* to *.*.bin     (( 10 times, and [Skip] one file in chem\ ))
@echo 2) run "MAKE_BIN.BAT final FinalDirectory\"
@echo 3) move *.* to subdirectories under FinalDirectory\        (( 10 times ))
@echo Make copies of FinalDirectory\ , especially if you will use BINS.BAT .
goto end

:final
ren chem\polar.doc.htm polar.htm.bin
ren astronmy\nil_~2.bin nil_~1.bin
attrib -r chem\*.*
attrib -r font\*.*
attrib -r lang\*.*
attrib -r xwindows\*.*
md %2astronmy
md %2chem
md %2font
md %2graphics
md %2lang
md %2mapping
md %2proj
md %2science
md %2winhelp
md %2xwindows
:end
