home *** CD-ROM | disk | FTP | other *** search
/ PC Player 1995 August / PCPL0895.ISO / demos / towerass / tademo.bat < prev   
Encoding:
DOS Batch File  |  1995-06-19  |  656 b   |  26 lines

  1. @echo off
  2. if exist %0\archive.exe goto gotcommand
  3. echo     UNEXPECTED FATAL ERROR: COULD NOT FIND ARCHIVE: %0\ARCHIVE.EXE
  4.  
  5. if not exist %0 goto stopnow
  6. echo     Please repeat the command, but do NOT enter the .BAT extension!
  7. goto stopnow
  8.  
  9. :gotcommand
  10. if not exist %1\nul     goto goforit
  11. if exist %1nul     echo Default target directory is:
  12. if exist %1nul     cd %1
  13. if exist %1nul     %0 %1.
  14.  
  15. :goforit
  16. echo    Installation will proceed from %0\ARCHIVE to %1\*.*
  17. if exist %1\*.*    echo    The target directory already contains some files.
  18. echo Press Control and C to abort installation, OR
  19. pause
  20. %0\archive -D -o %1\
  21. if errorlevel 1    goto stopnow
  22.  
  23. :stopnow
  24.  
  25.  
  26.