home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 60.img / VMOS.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-01-18  |  2KB  |  89 lines

  1. echo off
  2.   cls
  3.   echo.
  4.   echo.
  5.   echo Vmos/3 - Virtual multitasking operating system for the 80386
  6.   echo            Installation Procedure for Version 1 (1.1)
  7.   echo.
  8.  
  9.   if %1@==@  goto default
  10.   echo Do you want to install Vmos/3 onto fixed drive %1? (Y or N)
  11.   a:yesno
  12.   if errorlevel 1 goto redo
  13.   echo Yes
  14.   if exist %1\vmos\vmos.exe goto oldvmos
  15.   echo Creating %1\VMOS
  16.   md %1\vmos
  17.  
  18. :oldvmos
  19.   echo Copying Vmos/3 to fixed drive %1\VMOS
  20.   copy a:vmos.exe  %1\vmos > nul
  21.   copy a:*.exp     %1\vmos > nul
  22.   if exist a:vmos.sym copy a:*.sym %1\vmos > nul
  23.   copy a:profile.* %1\vmos > nul
  24.   copy a:*.bat     %1\vmos > nul
  25.   copy a:read.me   %1\vmos > nul
  26.   copy a:hello     %1\vmos > nul
  27.   %1\vmos\profile %1\vmos\vmosconf
  28.   goto laststep
  29.  
  30. :default
  31.   echo Are you installing Vmos/3 onto fixed drive C:? (Y or N)
  32.   a:yesno
  33.   if errorlevel 1 goto redo
  34.   echo Yes
  35.   if exist c:\vmos\vmos.exe goto oldvmos2
  36.   md c:\vmos
  37.  
  38. :oldvmos2
  39.   echo Copying Vmos/3 to fixed drive C:\VMOS
  40.   copy a:vmos.exe  c:\vmos > nul
  41.   copy a:*.exp     c:\vmos > nul
  42.   if exist a:vmos.sym copy a:*.sym c:\vmos > nul
  43.   copy a:profile.* c:\vmos > nul
  44.   copy a:*.bat     c:\vmos > nul
  45.   copy a:read.me   c:\vmos > nul
  46.   copy a:hello     c:\vmos > nul
  47.   c:\vmos\profile c:\vmos\vmosconf
  48.   goto laststep
  49.  
  50. :redo
  51.   echo The correct syntax for installing Vmos/3 is:
  52.   echo.
  53.   echo  A:INSTALL [drive specification]
  54.   echo.
  55.   echo     [drive specification] is optional.  If omitted, drive C: will be used.
  56.   echo     example:  A:INSTALL       will install onto drive C:
  57.   echo               A:INSTALL D:    will install onto drive D:
  58.   echo.
  59.   echo.
  60.   goto done
  61.  
  62. :laststep
  63.   echo.
  64.   echo.
  65.   echo Do you want to start Vmos/3 automatically when you boot? (Y or N)
  66.   a:yesno
  67.   if errorlevel 1 goto noauto
  68.   echo Yes
  69.   echo Adding VMOS to the end of C:\AUTOEXEC.BAT
  70.   echo.             >  a:temp
  71.   if %1@==@  goto skipdrive
  72.   echo %1           >  a:temp
  73. :skipdrive
  74.   echo cd %1\vmos   >> a:temp
  75.   echo vmos         >> a:temp
  76.   copy c:\autoexec.bat+a:temp  c:\autoexec.bat  > nul
  77.   goto donegood
  78. :noauto
  79.   echo No
  80.  
  81. :donegood 
  82.   echo Vmos/3 Installation Procedure is complete
  83.   echo.
  84.   echo Please examine the file READ.ME before using Vmos/3
  85. :done
  86.   echo.
  87.   exit
  88.  
  89.