Metropoli BBS
VIEWER: autot.bat MODE: TEXT (CP437)
echo off
cls
SET PATH=%1:\TG;
%1:
cd\tg
date
time
del C:\autoexec.bat
if EXIST autoexec.tgs goto usetgs
copy %1:\tg\autob C:\autoexec.bat/v >NUL:
goto prep
:usetgs
copy %1:\tg\autoexec.tgs C:\autoexec.bat/v >NUL:
goto :prep2
:prep
if EXIST C:\autoexec.tg goto :prep1
goto :prep2
:prep1
del C:\autoexec.tg
rem need to recreate autoexec.bat file
tgpath %1
:prep2
preptape
alarmclk
mmenu
echo  
prom N Y 60 Are you using the IMAGE program with a color monitor? (Y/N)
if ERRORLEVEL 1 tgcolor
rem  Delete the installation files we no longer need
echo  
echo  
echo Now removing the installation software, which is no longer needed.
echo  
%1:
cd \tg
if EXIST autoexec.tgt del %1:\tg\autoexec.tgt
rem don't delete current batch file autot.bat
if EXIST autot del %1:\tg\autot
if EXIST autob del %1:\tg\autob
if EXIST makeauto.exe del %1:\tg\makeauto.exe
if EXIST config.sys del %1:\tg\config.sys
if EXIST command.com del %1:\tg\command.com
if EXIST cfgadd.exe del %1:\tg\cfgadd.exe
if EXIST qcopy.exe del %1:\tg\qcopy.exe
if EXIST tgexist.com del %1:\tg\tgexist.com
if EXIST tgpath.exe del %1:\tg\tgpath.exe
if EXIST autoac del %1:\tg\autoac
if EXIST autoexec.tgs del %1:\tg\autoexec.tgs
if EXIST getdrive.com del %1:\tg\getdrive.com
if EXIST prom.com del %1:\tg\prom.com
if EXIST tinstall.bat del %1:\tg\tinstall.bat
if EXIST tinstal2.bat del %1:\tg\tinstal2.bat
if EXIST tinstal3.bat del %1:\tg\tinstal3.bat
rem  Final reboot
        cls
        echo  
        echo ┌─────────────────────────────────────────────────────────────────────────────┐
        echo │                                                                             │
        echo │                       THE INSTALLATION IS COMPLETE.                         │
        echo │                                                                             │
        echo ├─────────────────────────────────────────────────────────────────────────────┤
        echo │                                                                             │
        echo │        After rebooting one final time, your system is ready for use.        │
        echo │                                                                             │
        echo └─────────────────────────────────────────────────────────────────────────────┘
        echo  
        reboot

[ RETURN TO DIRECTORY ]