home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 3.13 / 1998-04_Disc_3.13.iso / HB5DEMO / VM.BAT < prev   
DOS Batch File  |  1995-10-12  |  3KB  |  59 lines

  1. @echo off
  2.  
  3. rem ┌────────────────────────────────────────────────────────────────────────
  4. rem │
  5. rem │  Notes about the DOS4GVM environment variable
  6. rem │
  7. rem │  The DOS4GVM environment variable is used to control the virtual
  8. rem │  memory features for HardBall 5.  There are a number of parameters
  9. rem │  the experienced computer user can adjust to tune VM for their
  10. rem │  computer system:
  11. rem │
  12. rem │  VirtualSize#7000      Sets the size of the virtual address space to
  13. rem │                        7000K.  Do _not_ decrease this number or
  14. rem │                        HardBall 5 will not work properly.
  15. rem │
  16. rem │                        Note that a '#' character is used in place of
  17. rem │                        an '=' character because command.com won't let
  18. rem │                        you put an '=' in an environment variable.
  19. rem │
  20. rem │  NoDeleteSwap          If you specify this option, the swap file will
  21. rem │                        not be deleted when the game exits.  The default
  22. rem │                        is to delete the swap file when the game exits.
  23. rem │
  24. rem │  SwapName#VirtMem.SWP  Sets the swap file name to "VirtMem.SWP".  You
  25. rem │                        can put the swap file on other partitions by
  26. rem │                        specifying a full pathname, such as:
  27. rem │                           SwapName#D:\Temp\VirtMem.SWP
  28. rem │
  29. rem │                        Swap files should not be put on compressed
  30. rem │                        drives (e.g. with DoubleSpace or Stacker)
  31. rem │                        because the disk access time might be too slow.
  32. rem │                        Other than being slower, it should work fine.
  33. rem │
  34. rem │  SwapInc#0             Causes space for the entire swap file to be
  35. rem │                        reserved when the program first boots.  This is
  36. rem │                        important to prevent the game from running out
  37. rem │                        of memory during game play.
  38. rem │
  39. rem │  To disable virtual memory, simply clear the DOS4GVM environment
  40. rem │  variable with the command "SET DOS4GVM=".
  41. rem │
  42. rem └────────────────────────────────────────────────────────────────────────
  43.  
  44. if "%1"=="off" goto turnoff
  45. if "%1"=="OFF" goto turnoff
  46. if "%1"=="Off" goto turnoff
  47.  
  48. set DOS4Gvm=VirtualSize#7000 SwapInc#0 SwapName#%1VirtMem.SWP
  49. echo Virtual memory for HardBall 5 has been enabled.
  50. echo The swap file will be called "%1VirtMem.SWP"
  51. goto done
  52.  
  53. :turnoff
  54. set DOS4Gvm=
  55. echo Virtual memory for HardBall 5 has been disabled.
  56.  
  57. :done
  58.  
  59.