summaryrefslogtreecommitdiff
path: root/language/cyrtug/cyrinst.bat
blob: dd8953839374c39913c745c3579eebd4a5ab92a7 (plain)
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
echo off
echo  *  EMTEX 3.14 programs installation  *
if NOT exist tinstall.bat goto err
if .%1==. goto err
if .%2==. goto err
if %1==%2 goto err
for %%c in (c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) do if %%c==%1 goto cont
for %%c in (C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z) do if %%c==%1 goto cont
for %%c in (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) do if %%c==%2 goto cont
for %%c in (A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z) do if %%c==%2 goto cont
goto err
:cont
echo  I will write to directory %1:\EMTEX and its subdirectories
echo  press A to abort installation or C -- to continue
respond.com A Cá
if errorlevel 3 goto inst
goto end
:inst
if NOT exist %1:\emtex\*.* md %1:\emtex >nul
copy tinst1.bat %1:\
copy ckd.bat %1:\
copy pkunzip.exe %1:\unz.exe
copy respond.com %1:\resp.com
copy *.ls %1:\
%1:\tinst1 %1 %2
rem   We go here also if %1 is an invalid drive
:err
echo Type          CYRINST [drive letter to install to] [drive letter for diskete]
echo for example   CYRINST C B
:end
echo The end