home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
VRAC
/
SUPER_M3.ZIP
/
HARD.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-06-14
|
4KB
|
107 lines
ECHO OFF
IF "%1"=="" GOTO ONE
IF "%2"=="" GOTO ONE
IF "%3"=="" GOTO ONE
GOTO TWO
:ONE
CLS
ECHO ╔══════════════════════════════════════════════════════════════════════╗
ECHO ║ ║
ECHO ║ ║
ECHO ║ Command line syntax error! it should look like: ║
ECHO ║ ║
ECHO ║ HARD [source drive] [target drive] [target directory] [RETURN] ║
ECHO ║ ║
ECHO ║ Example: HARD A C MACROS [RETURN] ║
ECHO ║ ║
ECHO ║ See README.TXT in Disk 3 for details (For 360K disks) ║
ECHO ║ See README.TXT in Disk 2 for details (For 720K disks) ║
ECHO ║ See README.TXT for details (For 1.2M or 1.44M disk) ║
ECHO ║ ║
ECHO ║ * * * P L E A S E S T A R T A G A I N * * * ║
ECHO ║ ║
ECHO ║ ║
ECHO ╚══════════════════════════════════════════════════════════════════════╝
GOTO END
:LOOP1
ECHO Insert ORIGINAL disk 1 in drive %1:
PAUSE
:TWO
CLS
IF EXIST %1:DISK1.EXE GOTO CONT1
ECHO ╔══════════════════════════════════════════════════════════════════════╗
ECHO ║ * * * WRONG DISK! SHOULD BE DISK 1 * * * ║
ECHO ╚══════════════════════════════════════════════════════════════════════╝
ECHO *
ECHO *
GOTO LOOP1
:CONT1
%2:
CD\
ECHO Creating sub-directory %2:\%3 and copying all the files from drive %1:
MD %3
CD %3
%1:DISK1 /x
%1:DISK2 /x
%1:DISK3 /x
IF EXIST %1:MANAGERS.EXE GOTO CONT2
IF EXIST %1:DISK4.EXE GOTO CONT2
:LOOP2
ECHO Insert ORIGINAL disk 2 in drive %1:
PAUSE
IF EXIST %1:DISK4.EXE GOTO CONT2
ECHO ╔══════════════════════════════════════════════════════════════════════╗
ECHO ║ * * * WRONG DISK! SHOULD BE DISK 2 * * * ║
ECHO ╚══════════════════════════════════════════════════════════════════════╝
ECHO *
ECHO *
GOTO LOOP2
:CONT2
%1:DISK4 /x
%1:DISK5 /x
CD\
CD %3
ECHO Creating sub-directory %2:\%3\SCIENCE and copying all the files of the
ECHO SCIENTIFIC & ENGINEERING TOOL for LOTUS 1-2-3
MD SCIENCE
CD SCIENCE
%1:SCIENCE
IF EXIST %1:MANAGERS.EXE GOTO CONT3
:LOOP3
ECHO Insert ORIGINAL Disk 3 (Disk 2 if 3.5" 720K) in drive %1:
PAUSE
IF EXIST %1:MANAGERS.EXE GOTO CONT3
ECHO ╔══════════════════════════════════════════════════════════════════════╗
ECHO ║ * * * WRONG DISK! SHOULD BE DISK 3 (Disk2 If 3.5" 720K) * * * ║
ECHO ╚══════════════════════════════════════════════════════════════════════╝
ECHO *
ECHO *
GOTO LOOP3
:CONT3
CD..
%1:MANAGERS /x
%1:SUPER /x
COPY %1:*.BAT
COPY %1:*.DOC
COPY %1:*.TXT
COPY %1:TV.*
CLS
ECHO ╔═══════════════════════════════════════════════════════════════════════╗
ECHO ║ ║
ECHO ║ HARD DISK INSTALLATION COMPLETED! ║
ECHO ║ ║
ECHO ║ If you are not using LOTUS 2.2/2.3 delete the *.MLB files using: ║
ECHO ║ ║
ECHO ║ DEL *.MLB [RETURN] ║
ECHO ║ ║
ECHO ║ If you are not using LOTUS 3.0 & up, delete the *.WK3 files using: ║
ECHO ║ ║
ECHO ║ DEL *.WK3 [RETURN] ║
ECHO ║ ║
ECHO ╚═══════════════════════════════════════════════════════════════════════╝
:END
ECHO *
ECHO *
PAUSE
CLS