home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
100 Pусских Uгр
/
980121_2306.iso
/
N.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-07-28
|
9KB
|
508 lines
@echo off
if %4 == 1 goto again
if %4 == 2 goto del_n
if %4 == 3 goto copy_n
if %4 == 4 goto del_k
:again
%2
cd \nikita
monitor %1 %2
cd \nikita
%2
if errorlevel 22 goto train
if errorlevel 21 goto frantis
if errorlevel 20 goto snakew
if errorlevel 19 goto crow
if errorlevel 18 goto sclaus
if errorlevel 17 goto osada
if errorlevel 16 goto catcher
if errorlevel 15 goto dropper
if errorlevel 14 goto loopy
if errorlevel 13 goto locman
if errorlevel 12 goto 15x15
if errorlevel 11 goto music
if errorlevel 10 goto time
if errorlevel 9 goto kiddy3
if errorlevel 8 goto kiddy2
if errorlevel 7 goto kiddy1
if errorlevel 6 goto knowl
if errorlevel 5 goto crosrus
if errorlevel 4 goto croseng
if errorlevel 3 goto plate
if errorlevel 2 goto brain
if errorlevel 1 goto abc
if errorlevel 0 goto end
:abc
IF EXIST \NIKITA\abc\abc.exe goto st_abc
md abc
cd abc
echo %1\nikita\abc\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\abc\*.* > nul
config
goto again
:st_abc
cd abc
abc
goto again
:brain
IF EXIST \NIKITA\brain\brainr.exe goto st_brain
md brain
cd brain
echo %1\nikita\brain\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\brain\*.* > nul
config
goto again
:st_brain
cd brain
brainr
goto again
:plate
IF EXIST \NIKITA\1993\1993.exe goto st_1993
md 1993
cd 1993
copy %1\nikita1\1993\*.* > nul
cd \nikita
:st_1993
cd 1993
1993.exe
goto again
:croseng
IF EXIST \NIKITA\crossreng\crosswrd.exe goto st_eng
md crossreng
cd crossreng
copy %1\nikita1\crosseng\*.* > nul
cd \nikita
:st_eng
cd crossreng
crosswrd
goto again
:crosrus
IF EXIST \NIKITA\crossrus\crosswor.exe goto st_rus
md crossrus
cd crossrus
copy %1\nikita1\crossrus\*.* > nul
cd \nikita
:st_rus
cd crossrus
crosswor
goto again
:knowl
IF EXIST \NIKITA\knowl\knowl1.exe goto st_knowl
md knowl
cd knowl
echo %1\nikita\knowl\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\knowl\*.* > nul
cd \nikita
:st_knowl
cd knowl
knowl1
goto again
:kiddy1
IF EXIST \NIKITA\kiddy1\lekisr1.exe goto s_kiddy1
md kiddy1
cd kiddy1
echo %1\nikita\kiddy1\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\kiddy1\*.* > nul
configr
goto again
:s_kiddy1
cd kiddy1
lekisr1
goto again
:kiddy2
IF EXIST \NIKITA\kiddy2\lekisr2.exe goto s_kiddy2
md kiddy2
cd kiddy2
echo %1\nikita\kiddy2\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\kiddy2\*.* > nul
config
goto again
:s_kiddy2
cd kiddy2
lekisr2
goto again
:kiddy3
IF EXIST \NIKITA\kiddy3\lekis3r.exe goto s_kiddy3
md kiddy3
cd kiddy3
echo %1\nikita\kiddy3\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\kiddy3\*.* > nul
config
goto again
:s_kiddy3
cd kiddy3
lekis3r
goto again
:time
IF EXIST \NIKITA\time\timelr.exe goto st_time
md time
cd time
echo %1\nikita\time\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\time\*.* > nul
config
goto again
:st_time
cd time
timelr
goto again
:music
IF EXIST \NIKITA\music\music.exe goto st_music
md music
cd music
echo %1\nikita\music\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\music\*.* > nul
cd \nikita
:st_music
cd music
music
goto again
:15x15
IF EXIST \NIKITA\15X15\puzzler.exe goto st_15
md 15X15
cd 15X15
echo %1\nikita\15X15\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\15X15\*.* > nul
configr
goto again
:st_15
cd 15X15
puzzler
goto again
:locman
IF EXIST \NIKITA\locman\locman.exe goto st_locman
md locman
cd locman
echo %1\nikita\locman\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\locman\*.* > nul
cd \nikita
:st_locman
cd locman
locman
goto again
:loopy
IF EXIST \NIKITA\LOOPY\LOOPY.exe goto st_loopy
md loopy
cd loopy
echo %1\nikita\loopy\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\loopy\*.* > nul
config
goto again
cd \nikita
:st_loopy
cd loopy
loopy
goto again
:dropper
IF EXIST \NIKITA\dropper\dropper.exe goto st_dropper
md dropper
cd dropper
copy %1\nikita1\dropper\*.* > nul
cd \nikita
:st_dropper
cd dropper
dropper
goto again
:catcher
IF EXIST \NIKITA\catcher\catcher.exe goto st_catcher
md catcher
cd catcher
echo %1\nikita\catcher\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\catcher\*.* > nul
config
goto again
:st_catcher
cd catcher
catcher
goto again
:osada
IF EXIST \NIKITA\OSADA\supertop.exe goto st_osada
md osada
cd osada
echo %1\nikita\osada\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\osada\*.* > nul
config
goto again
:st_osada
cd osada
supertop
goto again
:sclaus
IF EXIST \NIKITA\SCLAUS\sclaus.exe goto st_sclaus
md sclaus
cd sclaus
echo %1\nikita\sclaus\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\sclaus\*.* > nul
cd \nikita
:st_sclaus
cd sclaus
sclaus
goto again
:crow
IF EXIST \NIKITA\CROW\crow.exe goto st_crow
md crow
cd crow
copy %1\nikita\crow\*.* > nul
cd \nikita
:st_crow
cd crow
crow
goto again
:snakew
IF EXIST \NIKITA\SNAKEWIN\snakewin.exe goto st_snakewin
md snakewin
cd snakewin
echo %1\nikita\snakewin\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\snakewin\*.* > nul
cd \nikita
:st_snakewin
cd snakewin
snakewin
goto again
:frantis
%1
cd \nikita\frantis
call runme
goto again
:train
IF EXIST \NIKITA\TRAIN\vagon.exe goto st_train
md train
cd train
echo %1\nikita\train\XXXXXXXX.XXX > nikita.cfg
copy %1\nikita1\train\*.* > nul
cd \nikita
:st_train
cd train
vagon
goto again
:del_n
%2
cd \nikita
if %3 == 22 goto dtrain
if %3 == 21 goto dfrantis
if %3 == 20 goto dsnakew
if %3 == 19 goto dcrow
if %3 == 18 goto dsclaus
if %3 == 17 goto dosada
if %3 == 16 goto dcatcher
if %3 == 15 goto ddropper
if %3 == 14 goto dloopy
if %3 == 13 goto dlocman
if %3 == 12 goto d15x15
if %3 == 11 goto dmusic
if %3 == 10 goto dtime
if %3 == 9 goto dkiddy3
if %3 == 8 goto dkiddy2
if %3 == 7 goto dkiddy1
if %3 == 6 goto dknowl
if %3 == 5 goto dcrosrus
if %3 == 4 goto dcroseng
if %3 == 3 goto dplate
if %3 == 2 goto dbrain
if %3 == 1 goto dabc
goto end
:dabc
IF NOT EXIST abc\abc.exe goto end
cd abc
echo y | del *.* > nul
cd ..
rd abc
goto end
:dbrain
IF NOT EXIST brain\brainr.exe goto end
cd brain
echo y | del *.* > nul
cd ..
rd brain
goto end
:dplate
IF NOT EXIST 1993\1993.exe goto end
cd 1993
echo y | del *.* > nul
cd ..
rd 1993
goto end
:dcroseng
IF NOT EXIST crossreng\crosswrd.exe goto end
cd crossreng
echo y | del *.* > nul
cd ..
rd crossreng
goto end
:dcrosrus
IF NOT EXIST crossrus\crosswor.exe goto end
cd crossrus
echo y | del *.* > nul
cd ..
rd crossrus
goto end
:dknowl
IF NOT EXIST knowl\knowl1.exe goto end
cd knowl
echo y | del *.* > nul
cd ..
rd knowl
goto end
:dkiddy1
IF NOT EXIST kiddy1\lekisr1.exe goto end
cd kiddy1
echo y | del *.* > nul
cd ..
rd kiddy1
goto end
:dkiddy2
IF NOT EXIST kiddy2\lekisr2.exe goto end
cd kiddy2
echo y | del *.* > nul
cd ..
rd kiddy2
goto end
:dkiddy3
IF NOT EXIST kiddy3\lekis3r.exe goto end
cd kiddy3
echo y | del *.* > nul
cd ..
rd kiddy3
goto end
:dtime
IF NOT EXIST time\timelr.exe goto end
cd time
echo y | del *.* > nul
cd ..
rd time
goto end
:dmusic
IF NOT EXIST music\music.exe goto end
cd music
echo y | del *.* > nul
cd ..
rd music
goto end
:d15x15
IF NOT EXIST 15X15\puzzler.exe goto end
cd 15X15
echo y | del *.* > nul
cd ..
rd 15X15
goto end
:dlocman
IF NOT EXIST locman\locman.exe goto end
cd locman
echo y | del *.* > nul
cd ..
rd locman
goto end
:dloopy
IF NOT EXIST LOOPY\LOOPY.exe goto end
cd loopy
echo y | del *.* > nul
cd ..
rd loopy
goto end
:ddropper
IF NOT EXIST dropper\dropper.exe goto end
cd dropper
echo y | del *.* > nul
cd ..
rd dropper
goto end
:dcatcher
IF NOT EXIST catcher\catcher.exe goto end
cd catcher
echo y | del *.* > nul
cd ..
rd catcher
goto end
:dosada
IF NOT EXIST OSADA\supertop.exe goto end
cd osada
echo y | del *.* > nul
cd ..
rd osada
goto end
:dsclaus
IF NOT EXIST SCLAUS\sclaus.exe goto end
cd sclaus
echo y | del *.* > nul
cd ..
rd sclaus
goto end
:dcrow
IF NOT EXIST CROW\crow.exe goto end
cd crow
echo y | del *.* > nul
cd ..
rd crow
goto end
:dsnakew
IF NOT EXIST SNAKEWIN\snakewin.exe goto end
cd snakewin
echo y | del *.* > nul
cd ..
rd snakewin
goto end
:dfrantis
goto end
:dtrain
IF NOT EXIST TRAIN\vagon.exe goto end
cd train
echo y | del *.* > nul
cd ..
rd train
goto end
:copy_n
copy %1\*.* %2\nikita > nul
goto end
:del_k
%2
cd \nikita
echo y | del *.* > nul
:end