home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Aktiv 1 / CDA1_96.ISO / novell / ban_upgr.exe / arj / !UPGRADE.BAT
DOS Batch File  |  1995-10-10  |  2KB  |  68 lines

  1. :!UPGRADE.BAT
  2.  @echo off
  3.  
  4. :┌───────────────────────────────────────────────────────────────────────────┐
  5. :│                  *** For resellers / "small" upgrade ***                  │
  6. :└───────────────────────────────────────────────────────────────────────────┘
  7.  
  8.  If "%3"=="FIN"                                 goto FINAL
  9.  If "%3"=="FINAL"                               goto FINAL
  10.  If "%1"==""                                    goto DIR_ERR
  11.  If "%2"==""                                    goto DIR_ERR
  12.  If "%3"==""                                    goto DIR_ERR
  13.  If "%4"==""                                    goto DIR_ERR
  14.  If not exist %1%2\*.* If not exist %1%2*.*     goto DIR_ERR
  15.  If not exist %3%4\*.* If not exist %3%4*.*     goto DIR_ERR
  16.  
  17. :COPY 
  18.  echo.
  19.  echo.
  20.  echo !UPGRADE.BAT
  21.  echo ============
  22.  echo.
  23.  echo.
  24.  echo                                     │
  25.  echo !UPGRADE kopiert neue Dateien in    │ !UPGRADE copies new files into the
  26.  echo die Bibliothek "Marktplatz".        │ "market place" library.
  27.  echo                                     │
  28.  echo (Weiter: eine Tasten drücken.)      │ (Press any key to continue.)
  29.  echo                                     │
  30.  echo.
  31.  >NUL pause
  32.  %1
  33.  cd %2
  34.  >NUL xcopy .\PLC\*.*   %3%4\PLC /S/E/V
  35.  %3
  36.  If exist .\TMP\!BAN_LIB.PLC del .\TMP\!BAN_LIB.PLC
  37.  goto FINAL
  38.  
  39. :FINAL
  40.  echo.
  41.  echo                                     │
  42.  echo Das Upgrade wurde beendet.          │ The upgrade is finished. 
  43.  echo                                     │
  44.  echo.
  45.  echo.
  46.  pause
  47.  goto END
  48.  
  49. :DIR_ERR
  50.  echo.
  51.  echo.
  52.  echo ?!? »%1%2« ?!?
  53.  echo.
  54.  If "%2"=="" echo SYNTAX: !upgrade [dest.drive] [dest.path]
  55.  If "%2"=="" echo.
  56.  >nul pause
  57.  goto END
  58.  
  59.  
  60.  
  61. :END
  62.  If not "%3"=="" If not "%3"=="FIN" If not "%3"=="FINAL" %3
  63.  If not "%4"=="" cd %4
  64.  
  65.  
  66.  
  67.  
  68.