home *** CD-ROM | disk | FTP | other *** search
/ The SelectWare System Volume 2 #3 / The_SelectWare_System_Series_1_Volume_2_Number_3_Selectware.iso / fox10001 / demo.bat < prev    next >
DOS Batch File  |  1989-11-10  |  1KB  |  69 lines

  1. echo off
  2. rem ++
  3. rem
  4. rem                FoxPro Demo Startup
  5. rem
  6. rem --
  7. cls
  8. echo 
  9. echo                FoxPro Demonstration
  10. echo 
  11. echo    You must have FILES set to at least 30 in your CONFIG.SYS
  12. echo    to run the FoxPro Demo.
  13. echo 
  14. echo    If you are not sure about this, or wish to stop this
  15. echo    demonstration, Press CTRL-C now.  Otherwise,
  16. echo 
  17. pause
  18. rem
  19. rem Get to the right directory
  20. rem
  21. IF EXIST FLAG.BXX DEL FLAG.BXX
  22. IF NOT EXIST DEMO.PRG GOTO SAVCFG
  23. CD ..
  24. COPY DEMO\CONFIG.FP FLAG.BXX
  25. rem
  26. rem Save old config file
  27. rem
  28. :SAVCFG
  29. IF NOT EXIST DEMO\CONFIG.FP GOTO BAD
  30. IF EXIST CONFIG.FSV DEL CONFIG.FSV
  31. IF EXIST CONFIG.FP COPY CONFIG.FP CONFIG.FSV
  32. rem
  33. rem Get a good config file
  34. rem
  35. COPY DEMO\CONFIG.FP
  36. rem
  37. rem Run the DEMO
  38. rem
  39. FOXPRO DEMOSTRT
  40. rem
  41. rem Get back to the foxpro root
  42. rem
  43. IF NOT EXIST FLAG.PXX GOTO RESTCFG
  44. DEL FLAG.PXX
  45. CD ..
  46. rem
  47. rem Put the config back
  48. rem
  49. :RESTCFG
  50. IF EXIST CONFIG.FSV COPY CONFIG.FSV CONFIG.FP
  51. IF NOT EXIST CONFIG.FSV DEL CONFIG.FP
  52. IF EXIST CONFIG.FSV DEL CONFIG.FSV
  53. rem
  54. rem Go back
  55. rem
  56. IF NOT EXIST FLAG.BXX GOTO DONE
  57. DEL FLAG.BXX
  58. CD DEMO
  59. GOTO DONE
  60. rem
  61. rem Not in right directory
  62. rem
  63. :BAD
  64. echo 
  65. echo    You must be in the directory where you installed FoxPro
  66. echo    to run the FoxPro Demo.
  67. rem
  68. rem Done
  69. :DONE