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

  1. echo off
  2.   cls
  3.   echo.
  4.   echo.
  5.   echo Vmos/3 - Virtual multitasking operating system for the 80386
  6.   echo                Update Procedure for 1.1 versions 
  7.   echo.
  8.   copy a:warning a:history > nul
  9.   if %1@==@  goto testC
  10.   echo Do you want to update Vmos/3 on fixed drive %1? (Y or N)
  11.   a:yesno
  12.   if errorlevel 1 goto noX
  13.   echo Yes
  14.   if not exist %1\vmos\vmos.exe goto testdrives
  15.   del %1\vmos\profile.com
  16.   copy a:vmos.exe %1\vmos > nul
  17.   copy a:*.exp    %1\vmos > nul
  18.   if exist a:vmos.sym copy a:*.sym %1\vmos > nul
  19.   if exist %1\vmos\vmosauto.bat echo Saving old VMOSAUTO.bat as %1\VMOS\VMOSAUTO.$$$
  20.   if exist %1\vmos\vmosauto.bat copy %1\vmos\vmosauto.bat %1\vmos\vmosauto.$$$ > nul
  21.   if exist %1\vmos\newtask.bat  echo Saving old NEWTASK.BAT as %1\VMOS\NEWTASK.$$$ 
  22.   if exist %1\vmos\newtask.bat  copy %1\vmos\newtask.bat %1\vmos\newtask.$$$  > nul
  23.   if exist %1\vmos\hello        echo Saving old HELLO as %1\VMOS\HELLO.$$$ 
  24.   if exist %1\vmos\hello        copy %1\vmos\hello  %1\vmos\hello.$$$  > nul
  25.   copy a:*.bat        %1\vmos > nul
  26.   copy a:profile.exe %1\vmos > nul
  27.   copy a:read.me      %1\vmos > nul
  28.   if exist %1\vmos\vmosconf echo Saving old VMOSCONF as %1\vmos\VMOSCONF.$$$
  29.   if exist %1\vmos\vmosconf copy %1\vmos\vmosconf %1\vmos\vmosconf.$$$ > nul
  30.   echo Creating new VMOSCONF file.  Please respond below.
  31.   %1\vmos\profile %1\vmos\vmosconf
  32.   echo %1 drive updated > a:history
  33.   goto done
  34. :noX
  35.   Echo No
  36.   goto done
  37.  
  38. :testdrives
  39. :testC
  40.   if not exist c:\vmos\vmos.exe goto testD
  41.   echo Do you want to update Vmos/3 on fixed drive C? (Y or N)
  42.   a:yesno
  43.   if errorlevel 1 goto noC
  44.   echo Yes
  45.   echo Copying Vmos/3, VMOSMAKE and PROFILE to C:\VMOS
  46.   del c:\vmos\profile.com
  47.   copy a:vmos.exe c:\vmos > nul
  48.   copy a:*.exp    c:\vmos > nul
  49.   if exist a:vmos.sym copy a:*.sym c:\vmos > nul
  50.   if exist c:\vmos\vmosauto.bat echo Saving old VMOSAUTO.bat as C:\VMOS\VMOSAUTO.$$$
  51.   if exist c:\vmos\vmosauto.bat copy c:\vmos\vmosauto.bat c:\vmos\vmosauto.$$$ > nul
  52.   if exist c:\vmos\newtask.bat  echo Saving old NEWTASK.BAT as C:\VMOS\NEWTASK.$$$ 
  53.   if exist c:\vmos\newtask.bat  copy c:\vmos\newtask.bat c:\vmos\newtask.$$$  > nul
  54.   if exist c:\vmos\hello        echo Saving old HELLO as c:\VMOS\HELLO.$$$ 
  55.   if exist c:\vmos\hello        copy c:\vmos\hello  c:\vmos\hello.$$$  > nul
  56.   copy a:*.bat        c:\vmos > nul
  57.   copy a:profile.exe  c:\vmos > nul
  58.   copy a:VMOSMAKE.EXE c:\vmos > nul
  59.   copy a:read.me      c:\vmos > nul
  60.   if exist c:\vmos\vmosconf echo Saving old VMOSCONF as VMOSCONF.$$$
  61.   if exist c:\vmos\vmosconf copy c:\vmos\vmosconf c:\vmos\vmosconf.$$$ > nul
  62.   echo Creating new VMOSCONF file.  Please respond below.
  63.   c:\vmos\profile c:\vmos\vmosconf
  64.   echo C drive updated > a:history
  65.   goto testD
  66.  
  67. :noC
  68.   echo No
  69. :testD
  70.   if not exist d:\vmos\vmos.exe goto testE
  71.   echo Do you want to update Vmos/3 on fixed drive D? (Y or N)
  72.   a:yesno
  73.   if errorlevel 1 goto noD
  74.   echo Yes
  75.   echo Copying Vmos/3, VMOSMAKE and PROFILE to D:\VMOS
  76.   del d:\vmos\profile.com
  77.   copy a:vmos.exe d:\vmos > nul
  78.   copy a:*.exp    d:\vmos > nul
  79.   if exist a:vmos.sym copy a:*.sym d:\vmos > nul
  80.   if exist d:\vmos\vmosauto.bat echo Saving old VMOSAUTO.BAT as D:\VMOS\VMOSAUTO.$$$
  81.   if exist d:\vmos\vmosauto.bat copy d:\vmos\vmosauto.bat d:\vmos\vmosauto.$$$ > nul
  82.   if exist d:\vmos\newtask.bat  echo Saving old NEWTASK.BAT as D:\VMOS\NEWTASK.$$$ 
  83.   if exist d:\vmos\vmosauto.bat copy d:\vmos\vmosauto.bat d:\vmos\vmosauto.$$$ > nul
  84.   if exist d:\vmos\hello        echo Saving old HELLO as d:\VMOS\HELLO.$$$ 
  85.   if exist d:\vmos\hello        copy d:\vmos\hello  d:\vmos\hello.$$$  > nul
  86.   copy a:*.bat        d:\vmos > nul
  87.   copy a:profile.exe  d:\vmos > nul
  88.   copy a:VMOSMAKE.EXE d:\vmos > nul
  89.   copy a:read.me      d:\vmos > nul
  90.   if exist d:\vmos\vmosconf echo Saving old VMOSCONF as VMOSCONF.$$$
  91.   if exist d:\vmos\vmosconf copy d:\vmos\vmosconf d:\vmos\vmosconf.$$$ > nul
  92.   echo Creating new VMOSCONF file.  Please respond below.
  93.   d:\vmos\profile d:\vmos\vmosconf
  94.   echo D drive updated >> a:history
  95.   goto testE
  96.  
  97. :noD
  98.   echo No
  99. :testE
  100.   if not exist e:\vmos\vmos.exe goto testF
  101.   echo Do you want to update Vmos/3 on fixed drive E? (Y or N)
  102.   a:yesno
  103.   if errorlevel 1 goto noE
  104.   echo Yes
  105.   echo Copying Vmos/3, VMOSMAKE and PROFILE to E:\VMOS
  106.   del e:\vmos\profile.com
  107.   copy a:vmos.exe e:\vmos > nul
  108.   copy a:*.exp    e:\vmos > nul
  109.   if exist a:vmos.sym copy a:*.sym e:\vmos > nul
  110.   if exist e:\vmos\vmosauto.bat echo Saving old VMOSAUTO.BAT as E:\VMOS\VMOSAUTO.$$$
  111.   if exist e:\vmos\vmosauto.bat copy e:\vmos\vmosauto.bat e:\vmos\vmosauto.$$$ > nul
  112.   if exist e:\vmos\newtask.bat  echo Saving old NEWTASK.BAT as E:\VMOS\NEWTASK.$$$ 
  113.   if exist e:\vmos\newtask.bat  copy e:\vmos\newtask.bat e:\vmos\newtask.$$$ > nul
  114.   if exist e:\vmos\hello        echo Saving old HELLO as e:\VMOS\HELLO.$$$ 
  115.   if exist e:\vmos\hello        copy e:\vmos\hello  e:\vmos\hello.$$$  > nul
  116.   copy a:*.bat        e:\vmos > nul
  117.   copy a:profile.exe  e:\vmos > nul
  118.   copy a:VMOSMAKE.EXE e:\vmos > nul
  119.   copy a:read.me      e:\vmos > nul
  120.   if exist e:\vmos\vmosconf echo Saving old VMOSCONF as E:\VMOS\VMOSCONF.$$$
  121.   if exist e:\vmos\vmosconf copy e:\vmos\vmosconf e:\vmos\vmosconf.$$$ > nul
  122.   echo Creating new VMOSCONF file.  Please respond below.
  123.   e:\vmos\profile e:\vmos\vmosconf
  124.   echo E drive updated >> a:history
  125.   goto testF
  126.  
  127. :noE
  128.   echo No
  129. :testF
  130.   if not exist f:\vmos\vmos.exe goto done
  131.   echo Do you want to update Vmos/3 on fixed drive F? (Y or N)
  132.   a:yesno
  133.   if errorlevel 1 goto noF
  134.   echo Yes
  135.   echo Copying Vmos/3, VMOSMAKE and PROFILE to F:\VMOS
  136.   del f:\vmos\profile.com
  137.   copy a:vmos.exe f:\vmos > nul
  138.   copy a:*.exp    f:\vmos > nul
  139.   if exist a:vmos.sym copy a:*.sym f:\vmos > nul
  140.   if exist f:\vmos\vmosauto.bat echo Saving old VMOSAUTO.BAT as F:\VMOS\VMOSAUTO.$$$
  141.   if exist f:\vmos\vmosauto.bat copy f:\vmos\vmosauto.bat f:\vmos\vmosauto.$$$ > nul
  142.   if exist f:\vmos\newtask.bat echo Saving old NEWTASK.BAT as F:\VMOS\NEWTASK.$$$ 
  143.   if exist f:\vmos\newtask.bat copy f:\vmos\newtask.bat f:\vmos\newtask.$$$ > nul
  144.   if exist f:\vmos\hello        echo Saving old HELLO as f:\VMOS\HELLO.$$$ 
  145.   if exist f:\vmos\hello        copy f:\vmos\hello  f:\vmos\hello.$$$  > nul
  146.   copy a:*.bat        f:\vmos > nul
  147.   copy a:profile.exe  f:\vmos > nul
  148.   copy a:VMOSMAKE.EXE f:\vmos > nul
  149.   copy a:read.me      f:\vmos > nul
  150.   if exist f:\vmos\vmosconf echo Saving old VMOSCONF as VMOSCONF.$$$
  151.   if exist f:\vmos\vmosconf copy f:\vmos\vmosconf f:\vmos\vmosconf.$$$ > nul
  152.   echo Creating new VMOSCONF file.  Please respond below.
  153.   f:\vmos\profile f:\vmos\vmosconf
  154.   echo F drive updated >> a:history
  155.   goto done
  156.  
  157. :noF
  158.   echo No
  159. :done
  160.   type a:history
  161.   echo Vmos/3 Update Procedure is complete
  162.   echo.
  163.  
  164. :lastmessage
  165.   echo Please examine the file READ.ME before using Vmos/3
  166.   echo.
  167.   exit
  168.  
  169.