home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / OFFLINE / SX501P1.ZIP / PREINST.BAT < prev    next >
DOS Batch File  |  1994-01-31  |  1KB  |  27 lines

  1. @echo off
  2.  
  3. :
  4. : This Batch file SHOULD be executed before the UNZIP process
  5. : This is basically a cleanup process of old Xpress Files.
  6. :
  7. echo Deleting old files.... Ignore DOS errors or File Not Found messages
  8.  
  9.    for %%x in (*. misc\*.* help\*.* ) do del %%x > nul
  10.    for %%x in (hst*.bat def*.bat compress.bat *.hlp) do del %%x > nul
  11.    for %%x in (expand.bat recrep.bat sendopx.bat) do del %%x > nul
  12.    for %%x in (xpcvt5.exe xpcvt6.exe *.110) do del %%x > nul
  13.    for %%x in (*.prm *.raw order.frm xpmenu.bbs) do del %%x > nul
  14.    for %%x in (xpcfg.exe xpuser.exe) do del %%x > nul
  15.  
  16.    if exist xpmail.exe attrib xpmail.exe -r > nul
  17.    if exist xpadm.exe  attrib xpadm.exe -r  > nul
  18.  
  19. Echo backing up some old V4.00 files into directory PRE500XP.....
  20.  
  21.    md pre500xp > nul
  22.    md pre500xp\bull > nul
  23.    for %%x in (bull\*.*) do copy %%x pre500xp\bull > nul
  24.    for %%x in (xpuser.def xmaster.dat xforms.dat) do copy %%x pre500xp > nul
  25.    for %%x in (*.key *.ctl services.xp) do copy %%x pre500xp > nul
  26.    for %%x in (sxorder.*) do copy %%x pre500xp > nul
  27.