home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / vrac / sx503r1.zip / PREINST.BAT < prev    next >
DOS Batch File  |  1994-06-05  |  1KB  |  40 lines

  1. @echo off
  2.  
  3. : This Batch file SHOULD be executed before the UNZIP process
  4.  
  5.    if not exist xpmail.exe goto end
  6.  
  7. echo Existing Xpress Setup Detected..........................
  8.  
  9.    if exist xpmail.exe attrib xpmail.exe -r > nul
  10.    if exist xpadm.exe  attrib xpadm.exe -r  > nul
  11.  
  12. echo Deleting old files.....Ignore DOS errors or File Not Found messages
  13.  
  14.    for %%x in (misc\*.*) do del %%x > nul
  15.    for %%x in (help\*.*) do del %%x > nul
  16.    for %%x in (file_id.diz order.frm prices.doc) do del %%x > nul
  17.    for %%x in (register.* features.lst install.doc) do del %%x > nul
  18.    for %%x in (addendum.doc license.doc betateam.doc) do del %%x > nul
  19.    for %%x in (xdslist.doc checkoff.lst install.dat) do del %%x > nul
  20.  
  21.    if exist pre503\xpmail.prm goto end
  22.  
  23. echo Backing up some old files in directory PRE503\..............
  24.  
  25.    md pre503
  26.    md pre503\bull
  27.  
  28.    if exist xpmail.prm copy xpmail.prm pre503 >nul
  29.    if exist xpress.    copy xpress. pre503 >nul
  30.    if exist xpress.bat copy xpress.bat pre503 >nul
  31.  
  32.    for %%x in (bull\*.*) do copy %%x pre503\bull > nul
  33.    for %%x in (xpuser.def xmaster.dat xforms.dat) do copy %%x pre503 > nul
  34.    for %%x in (*.key *.ctl services.xp) do copy %%x pre503 > nul
  35.    for %%x in (sxorder.*) do copy %%x pre503 > nul
  36.    for %%x in (internet.*) do copy %%x pre503 > nul
  37.    for %%x in (xplang.ctl xpmenu.ctl) do del %%x > nul
  38.  
  39. :end
  40.