home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
DESKTOP
/
NAMPRO39.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1989-10-14
|
7KB
|
201 lines
echo off
cls
: Oct 14 1989
: Version: Use drive letter as argument to install on drive other than "C".
: Example - A:install D
:
: Where "D" is the drive to put the program & data files.
:
: This Installation only supports drives A thru L (see *remark below)
:
:If your floppy is not drive "A:", Use the DOS "Assign" command during
:installation. Example: C:ASSIGN A B
:This temporarily makes your computer use drive "B" instead of "A" when our
:Install program needs to get files from the floppy disk.
:After installation type: C:ASSIGN to change everything back to normal.
:
: *If your drive does not appear in the list below, you may add the
: appropriate line, using the following lines as an example.
:
if "%1"=="" goto :start
if "%1"=="D" goto :start1
if "%1"=="d" goto :start1
if "%1"=="E" goto :start1
if "%1"=="e" goto :start1
if "%1"=="F" goto :start1
if "%1"=="f" goto :start1
if "%1"=="G" goto :start1
if "%1"=="g" goto :start1
if "%1"=="H" goto :start1
if "%1"=="h" goto :start1
if "%1"=="I" goto :start1
if "%1"=="i" goto :start1
if "%1"=="J" goto :start1
if "%1"=="j" goto :start1
if "%1"=="K" goto :start1
if "%1"=="k" goto :start1
if "%1"=="L" goto :start1
if "%1"=="l" goto :start1
cls
echo
echo
echo You don't need to add a colon (:) after the drive letter.
echo Incorrect = Install D:
echo Correct = Install D
echo
echo Please try again.
echo
echo Press SPACE-BAR to return to DOS.
pause >nul
goto end
:START1
echo
echo
echo 1) Your NameProcessor will be installed on drive %1 in the \NP subdirectory.
echo
echo 2) The NP.bat (the batch file needed to start THE NameProcessor) will be put
echo on drive C:\ no matter where the program files are installed (unless you edit
echo this install batch file). It can then be moved to any drive or subdirectory
echo that you wish. You should insure that such a drive/subdirectory is in your
echo PATH environment variable.
echo
echo 3) Once installed, To run THE NameProcessor on a drive other than "C",
echo
echo " Type A:>NP D (where D is the correct drive letter) "
echo
echo
echo Press the SPACE-BAR to continue.
echo
pause >nul
:START
A:
cls
if "%1" == "" z C:\*.* /w
if NOT "%1" == "" z %1:\*.* /w
echo ╔═════════════ ^^^,^^^ ════════════════════════════════════╗
echo ║ This is the amount of space ║
echo ║ you have left on your hard disk ║
echo ╚═══════════════════════════════════════════════════════════╝
echo
echo ╔════════════════════════════════════════════════╗
echo ║ If the number ABOVE the arrows ║
echo ║ is less than: 425,000 bytes free on disk, ║
echo ║ ║
echo ║ Press Control-Break, ║
echo ║ or Control-C NOW! ║
echo ║ ║
echo ║ So that this program will stop, ║
echo ║ and you can make enough space available ║
echo ╚════════════════════════════════════════════════╝
echo
echo ╔══════════════════════════════════════════════════════════════════╗
echo ║ IF YOU DO HAVE ENOUGH SPACE, ║
echo ║ (the number ABOVE the arrows is more than 425,000 bytes free) ║
echo ║ You may press the SPACE-BAR, to resume installation. ║
echo ║ ║
echo ╚══════════════════════════════════════════════════════════════════╝
pause >nul
: echo THE NameProcessor(r) Install batch file
:
cls
cd \
if "%1" == "" C:
if NOT "%1" == "" %1:
: We change your prompt for diagnostic assistance of support
: of installation problems
: When you reboot your machine, your normal prompt will return
PROMPT $P$G
PROMPT $P$G
cls
: The following command creates a new directory
: named: "NP" for NameProcessor.
:
cd \
if NOT exist C:NP goto :NPFILEJMP
echo You have a file named "NP" on your root Directory,
echo We can't make a subdirectory while a file with that name exists.
echo Please rename, or erase it, then restart INSTALL.
goto end
:NPFILEJMP
if "%1" == "" if NOT exist C:\NP\*.* goto :MDIRJMP
if NOT "%1" == "" if NOT exist %1:\NP\*.* goto :MDIRJMP
CLS
if "%1" == "" dir C:\NP /w
if NOT "%1" == "" dir %1:\NP /w
echo
echo ╔═════════════════════════════════════════════════════╗
echo ║ You already have a subdirectory named: \NP ║
echo ║ It contains the files shown above. ║
echo ║ ║
echo ║ Press Control-C to stop this installation now, ║
echo ║ to keep from overwriting any files listed above. ║
echo ║ ║
echo ║ Press SPACE-BAR to continue with Installation. ║
echo ╚═════════════════════════════════════════════════════╝
pause >nul
:MDIRJMP
if "%1" == "" mkdir C:\NP >nul:
if NOT "%1" == "" mkdir %1:\NP >nul:
cd \np
:The following command verifies that the original files are OK.
cls
echo
echo
echo
echo ╔══════════════════════════════════════════════════════════════════╗
echo ║ Now verifying that your floppy disk arrived in perfect condition ║
echo ║ ║
echo ║ ║
echo ║ If this process stops, or shows an error, DO NOT CONTINUE. ║
echo ║ Your disk is probably damaged. ║
echo ╚══════════════════════════════════════════════════════════════════╝
copy A:*.* nul: >nul:
cls
echo
echo
echo
echo ╔══════════════════════════════════════════════════════════════════╗
echo ║ Now copying files from floppy disk to your Hard disk. ║
echo ╚══════════════════════════════════════════════════════════════════╝
if "%1" == "" SET DFPROG=C:\NP
if "%1" == "" PKUNZIP A:\NP32D.ZIP C:\NP *.*
if "%1" == "" copy A:\Z.COM C:\NP\Z.com >nul:
if "%1" == "" copy C:np.bat nul: >nul:
if "%1" == "" copy C:np.bat C:\ >nul:
if NOT "%1" == "" SET DFPROG=%1:\NP
if NOT "%1" == "" PKUNZIP A:\NP32D.ZIP %1:\NP *.*
if NOT "%1" == "" copy A:\Z.COM %1:\NP\Z.com >nul:
if NOT "%1" == "" copy %1:np.bat nul: >nul:
if NOT "%1" == "" copy %1:np.bat C:\ >nul:
cd \
IF EXIST C:\CONFIG.SYS goto :ATOCONFIG
IF EXIST %1:\CONFIG.SYS goto :ATOCONFIG
echo You do NOT have a file called config.sys on drive C. You will need one
echo to run NP correctly. A clean CONFIG.sys is about to be copied
echo to your root directory on drive C. If you don't want it copied there,
echo press Ctrl-brk, or Ctrl-C NOW, to stop this batch file immediately.
pause
if "%1" == "" COPY C:\NP\REST C:\CONFIG.SYS >NUL:
if NOT "%1" == "" COPY %1:\NP\REST %1:\CONFIG.SYS >NUL:
:ATOCONFIG
if "%1" == "" COPY C:\NP\REST C:\CONFIG.NP >NUL:
if NOT "%1" == "" COPY %1:\NP\REST C:\CONFIG.NP >NUL:
cd \NP
if NOT "%1" == "" erase %1:NP.BAT
if "%1" == "" erase C:NP.BAT
if NOT "%1" == "" env.bat %1:
if "%1" == "" env.bat
:END