home *** CD-ROM | disk | FTP | other *** search
- @echo off
-
- :CHECKS
- rem Check if the user has input the two command line parameters.
- if %2x==x goto USAGE
-
- rem Check if the 1-2-3 program directory contains the main DDF file.
- if not exist %1\install.ddf goto ERROR1
-
- rem Check if the driver distribution disk contains the driver DDF portion.
- if not exist %2*.ddf goto ERROR2
-
- cls
- echo ┌───────────────────────────────────────────────────────────────────────────┐
- echo │ │
- echo │ NEW DRIVER INSTALLATION │
- echo │ 1-2-3 Release 3.1 (tm) │
- echo │ 1-2-3 Release 3.4 (tm) │
- echo │ │
- echo │ This procedure will install new drivers from a supplemental │
- echo │ drivers distribution disk into your 1-2-3 Release 3.1 (tm) │
- echo │ or 1-2-3 Release 3.4 (tm) directory and make them available │
- echo │ for you to install using the Install program. │
- echo │ │
- echo │ Note that the copy of INSTALL.DDF in your 1-2-3 Release 3.1/3.4 │
- echo │ directory will be renamed to INSTALL.BAK. │
- echo │ │
- echo │ │
- echo └───────────────────────────────────────────────────────────────────────────┘
- echo
- echo
- echo
- echo
- echo
- echo
- echo
- echo
- pause
- cls
-
-
- :DDFAPPEND
- copy %1\install.ddf %1\install.bak
- if errorlevel 1 goto ERROR3
- copy %1\install.ddf+%2*.ddf %1\install.ddf
- if errorlevel 1 goto ERROR4
-
-
- :COPYDLD
- if not exist %2*.dl? goto COPYPBD
- copy %2*.dl? %1\*.*
- if errorlevel 1 goto ERROR4
-
- :COPYPBD
- if not exist %2*.pbd goto COPYLRF
- copy %2*.pbd %1\*.*
- if errorlevel 1 goto ERROR4
-
- :COPYLRF
- if not exist %2*.lrf goto OKEXIT
- copy %2*.lrf %1\*.*
- if errorlevel 1 goto ERROR4
- goto OKEXIT
-
-
- :USAGE
- cls
- echo ┌───────────────────────────────────────────────────────────────────────────┐
- echo │ │
- echo │ │
- echo │ To use this batch file, type: │
- echo │ │
- echo │ instdrv %%1 %%2 │
- echo │ │
- echo │ where %%1 is the full path name, including the drive letter of your │
- echo │ 1-2-3 Release 3.1/3.4 directory and %%2 is the drive letter that contains │
- echo │ the driver distribution disk. │
- echo │ │
- echo │ For example, if your 1-2-3 Release 3.1 directory is C:\123R31\ and │
- echo │ your driver distribution disk is in drive A then type: │
- echo │ │
- echo │ instdrv C:\123R31 A: │
- echo │ │
- echo │ │
- echo └───────────────────────────────────────────────────────────────────────────┘
- echo
- echo
- echo
- echo
- echo
- pause
- goto ERROREXIT
-
-
- :ERROR1
- cls
- echo ┌───────────────────────────────────────────────────────────────────────────┐
- echo │ │
- echo │ INSTALLATION ERROR │
- echo │ │
- echo │ Directory specified by %%1 does not contain INSTALL.DDF │
- echo │ │
- echo │ │
- echo └───────────────────────────────────────────────────────────────────────────┘
- echo
- echo
- goto ERROREXIT
-
-
- :ERROR2
- cls
- echo ┌───────────────────────────────────────────────────────────────────────────┐
- echo │ │
- echo │ INSTALLATION ERROR │
- echo │ │
- echo │ Drive specified by %%2 does not contain .DDF file for new driver. │
- echo │ │
- echo │ │
- echo └───────────────────────────────────────────────────────────────────────────┘
- echo
- echo
- goto ERROREXIT
-
-
- :ERROR3
- cls
- echo ┌───────────────────────────────────────────────────────────────────────────┐
- echo │ │
- echo │ INSTALLATION ERROR │
- echo │ │
- echo │ Cannot backup Install.ddf to Install.bak │
- echo │ │
- echo │ │
- echo └───────────────────────────────────────────────────────────────────────────┘
- echo
- echo
- goto ERROREXIT
-
-
- :ERROR4
- cls
- echo ┌───────────────────────────────────────────────────────────────────────────┐
- echo │ │
- echo │ INSTALLATION ERROR │
- echo │ │
- echo │ A copy error has occured.......Cleaning up │
- echo │ │
- echo │ │
- echo └───────────────────────────────────────────────────────────────────────────┘
- echo
- echo
- copy %1\install.bak %1\install.ddf
- del %1\install.bak
- goto ERROREXIT
-
-
- :OKEXIT
- cls
- echo ┌──────────────────────────────────────────────────────────────────────────┐
- echo │ │
- echo │ INSTALLATION COMPLETE │
- echo │ │
- echo │ Select Change selected equipment and either of the .DCF options to │
- echo │ add the drivers to the desired .DCF configuration file. Be sure to │
- echo │ save the new selections before exiting INSTALL. │
- echo │ │
- echo │ │
- echo └──────────────────────────────────────────────────────────────────────────┘
- echo
- echo
-
-
- :ERROREXIT
- rem End of Batch Program