home *** CD-ROM | disk | FTP | other *** search
/ PC Player 1998 May / PCP_9805.ISO / PATCHES / DARKR / ASTEROID.ZIP / ASTEROID.BAT < prev    next >
Encoding:
DOS Batch File  |  1997-10-10  |  1.3 KB  |  66 lines

  1. @echo off
  2. @if "%1"=="" goto err
  3.  
  4. echo ----
  5. echo -    Please make sure you have entered the correct path to your
  6. echo -    Dark Reign directory! Failure to do so may result
  7. echo -    in weird things happening!
  8. echo -    This batch file assumes you have entered the directory name
  9. echo -    in the following format:
  10. echo -    asteroid c:\"program files"\activision\"dark reign"
  11. echo -    Again, make sure this batch file points to this directory.
  12. echo ----
  13.  
  14. pause
  15.  
  16. @if not exist %1\dark\addon\nul goto makedir
  17.  
  18.  
  19. :go
  20.  
  21. @md %1\dark\addon\asteroid
  22.  
  23. @copy asteroid.ftg %1\dark\addon\asteroid
  24.  
  25. @copy packman.cfg %1\dark\addon\asteroid
  26.  
  27. @copy pack1.cfg %1\dark\packman.cfg
  28.  
  29. @if exist %1\dark\addon\alien\nul goto allterr
  30.  
  31.  
  32. goto success
  33.  
  34. :success
  35.  
  36. echo -
  37. echo -    That's it!
  38. echo -
  39. goto end
  40.  
  41. :err
  42.  
  43. echo /--------------------------------------------------------------------\
  44. echo -    Please enter the directory in which you installed Dark Reign.   -
  45. echo -                                                                    -
  46. echo -    eg: asteroid c:\"program files"\activision\"dark reign"         -
  47. echo \--------------------------------------------------------------------/
  48. pause
  49. goto end
  50.  
  51. :makedir
  52.  
  53. @md %1\dark\addon
  54.  
  55. goto go
  56.  
  57. :allterr
  58.  
  59. copy allterr.cfg %1\dark\packman.cfg
  60.  
  61. goto success
  62.  
  63. :end
  64.  
  65.  
  66.