home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / games / econol13.zip / ECON2001.EXE / pak / CTEAMDAT.BAT < prev    next >
DOS Batch File  |  1993-03-26  |  2KB  |  53 lines

  1. echo off
  2. echo ╔═════════════════════════════════════════════════════════════════╗
  3. echo ║                                                                 ║
  4. echo ║    The CTEAMDAT.BAT file moves the four files                   ║
  5. echo ║         that are required by the ECONOLAND program              ║
  6. echo ║         from directory area C:ECONOL to                         ║
  7. echo ║         area C:ECONOL\TEAMDAT                                   ║
  8. echo ║         that are required by the ECONOLAND program              ║
  9. echo ║                                                                 ║
  10. echo ║    OPTION:  You could use the Command Line to use different     ║
  11. echo ║    directories; for example, if you have installed the program  ║
  12. echo ║    in directory area D:\ECON\ECONOLAN and want the program to   ║
  13. echo ║    store output files in subdirectory TEAM2DAT, you would type  ║
  14. echo ║    the following to run the BAT file.                           ║
  15. echo ║         CTEAMDAT D:ECON\ECONOLAN TEAM2DAT                       ║
  16. echo ╚═════════════════════════════════════════════════════════════════╝
  17. echo .
  18. If "%1" == "" goto DEFAULT1
  19. SET DRI1=%1%
  20. GoTO NEXTS
  21. :DEFAULT1
  22. SET DRI1=C:\ECONO
  23. echo dri1 equals %dri1%
  24. GoTO DEFAULT2
  25. :NEXTS
  26. If "%2" == "" goto DEFAULT2
  27. SET DRI2=%2%
  28. GOTO NEXT2
  29. :DEFAULT2
  30. SET DRI2=TEAMDAT
  31. echo dri2 equals %dri2%
  32. pause
  33. :NEXT2
  34. echo Transfering files to %DRI1%\%DRI2%
  35. echo Type Ctrl-C if you do not want to do this, otherwise
  36. pause
  37. if not exist %DRI1%\%DRI2% mkdir %DRI1%\%DRI2%
  38. chdir %DRI1%\%DRI2%
  39. copy %DRI1%\*.CFF
  40. copy %DRI1%\*.CLT
  41. copy %DRI1%\*.CLS
  42. copy %DRI1%\*.HST
  43. chdir %DRI1%
  44. If exist %DRI1%\%DRI2%\ECONOL.HST goto success
  45. echo Sorry, files NOT transfered!
  46. Goto END
  47. :SUCCESS
  48. echo Operating files have been transfered to %DRI1%\%DRI2%
  49. :END
  50. SET DRI1=
  51. SET DRI2=
  52. echo .
  53.