home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 26
/
CD_ASCQ_26_1295.iso
/
vrac
/
dkcare40.zip
/
INSTALL.BAT
< prev
Wrap
DOS Batch File
|
1995-08-29
|
4KB
|
89 lines
@echo off
cls
If "%1" == "" goto Syntax
echo.
echo ╔═══════════════════════════════════════════════════════╗
echo ║ WELCOME TO THE INSTALLATION PROGRAM FOR DiskCare v4.0 ║
echo ╚═══════════════════════════════════════════════════════╝
echo.
echo DiskCare v4.0 will be installed to %1
echo.
choice /cyn "Do you wish to continue "
If errorlevel=2 goto alt
If errorlevel=1 goto continue
:continue
echo.
echo Making the %1 directory.
md %1
echo.
echo Unpacking to %1
disk -d %1
echo.
echo.
choice /c:yn "Whould you like the Installation Files Deleted "
If errorlevel=2 goto bye
If errorlevel=1 goto next
:next
echo.
echo Deleting Installation files.
echo.
del disk.exe
del file_id.diz
echo Installation Complete. Type 'DISK' to run.
del install.bat
goto end
:alt
cls
echo ╔════════════════════╗
echo ║ ALTERNATE METHOD ╠═══════════════════════════════════════════════════════╗
echo ╚═╦══════════════════╝ ║
echo ║ ║
echo ║ The alternate method for installation is: ║
echo ║ ║
echo ║ 1. Make desired directory. ║
echo ║ 2. Copy/Move DISK.EXE to that Directory. ║
echo ║ 3. Type 'DISK'. This will unpack the program. ║
echo ║ 4. Delete DISK.EXE, FILE_ID.DIZ & INSTALL.BAT ║
echo ║ 6. Copy/Move DISK.BAT to one of the Directories in your PATH statement ║
echo ╚══════════════════════════════════════════════════════════════════════════╝
echo.
echo Your PATH statement:
echo %path%
echo.
echo DiskCare v4.0 wasn't installed Correctly. Please try again.
goto end
:syntax
echo.
echo.
echo ╔════════════════════╗
echo ║ INSTALLATION ERROR ╠═══════════════════════════════════════════════════════╗
echo ╚═╦══════════════════╝ ║
echo ║ ║
echo ║ The proper syntax to install DiskCare v4.0 is: ║
echo ║ ║
echo ║ INSTALL [DESTINATION] ║
echo ║ ║
echo ║ DESTINATION is the complete path of the directory you wish to install ║
echo ║ DiskCare v4.0 to. ║
echo ║ ║
echo ║ EXAMPLE: ║
echo ║ ║
echo ║ Install C:\DISKCARE ║
echo ║ ║
echo ╚══════════════════════════════════════════════════════════════════════════╝
echo.
echo DiskCare v4.0 wasn't installed Correctly. Please try again.
goto end
:bye
cd %1
echo INSTALLATION completed, type 'disk40' to run.
:end
echo.