home *** CD-ROM | disk | FTP | other *** search
/ Season's Greetings & Games Unlimited / UGOLD_cd2.iso / canton / install.bat < prev    next >
DOS Batch File  |  1994-10-24  |  1KB  |  55 lines

  1. echo off
  2. REM =========================================================================
  3. REM     Install.bat, DOS batch file for installing CANTON to hard disk
  4. REM                        Shareware Version
  5. REM                  Copyright (c) 1994 NNN Software
  6. REM =========================================================================
  7. echo This program installs CANTON from floppy to \NNN on your hard drive
  8.  
  9.  
  10. REM -------------------------------------------------------------------------
  11. REM check given name of hard drive
  12.  
  13. if not %1=="" goto OK1
  14. echo ERROR: You must specify the name of your hard drive, e.g. INSTALL C:
  15. goto End
  16.  
  17. :OK1
  18. REM -------------------------------------------------------------------------
  19. REM make new NNN directory; errorlevel 0 means success
  20.  
  21. MKDIR %1\NNN
  22. if errorlevel 0 goto CopyFiles
  23. cls
  24. echo Error creating %1\NNN directory, do not use INSTALL program.
  25. echo You must install CANTON manually. Sorry. 
  26. goto End
  27.  
  28. :CopyFiles
  29. REM -------------------------------------------------------------------------
  30. REM copy files from floppy to %1\NNN
  31. echo on
  32.  
  33. cls
  34. echo Beginning Installation...
  35.  
  36. cls
  37. echo Copying...
  38. copy *.* %1\NNN
  39.  
  40. :UnzipFiles
  41. cls
  42. echo  Unzipping...
  43. %1
  44. cd %1\NNN
  45. DEMO
  46. del DEMO.exe
  47. echo off
  48.  
  49. :End
  50. REM -------------------------------------------------------------------------
  51. REM exit Install.bat
  52. echo Exiting INSTALL...
  53.  
  54. REM =========================================================================
  55.