home *** CD-ROM | disk | FTP | other *** search
/ HomeWare 14 / HOMEWARE14.bin / netutils / asap_r2.arj / SPEED.TIP < prev   
Text File  |  1994-03-15  |  2KB  |  70 lines

  1.                                ┌────────────┐
  2.                                │ Speed Tips │
  3.                                └────────────┘
  4.  
  5. The following tips can help ASAP! really fly on your network:
  6.  
  7.   +  Specify a local hard disk for the /SWAPPATH: parameter.  If not
  8.      possible, create a RAMDRIVE to use for the temporary swap files.
  9.      If using MS-RAMDRIVE.SYS, use the /A or /E parameters to load the
  10.      entire Ram disk in XMS or EMS memory.
  11.  
  12.      You can test for the existance of a local drive with a batch
  13.      command such as:
  14.  
  15.      set swap=f:\users\%login_name%
  16.      if exist d:\PRN set swap=d:\
  17.      set asap!=/path:m: /swappath:%swap%
  18.  
  19.      If you specify the /SWAPPATH: parameter on the command line (as
  20.      opposed to the ASAP! environment variable), precede the
  21.      command with a double-slash.  For example:  asap! //swappath:c:
  22.  
  23.   +  Use a Disk Cache for your local hard disk, such as MS' SMARTDRV.EXE.
  24.      This will greatly improve workstation performance.
  25.  
  26.   +  Run ASAP!.EXE from a local hard disk if possible.  The program
  27.      must constantly refer back to this file for information, so
  28.      placing it on a local cached hard disk can greatly affect
  29.      performance.  Even if not cached, most local hard disks can
  30.      outperform heavily loaded network drives.
  31.  
  32.  
  33.                           ┌─────────────────────┐
  34.                           │ Example Batch Files │
  35.                           └─────────────────────┘
  36.  
  37. The following sample batch tests a workstation to see if it has a local
  38. hard disk, and if so, checks to see if the ASAP!.EXE file is located
  39. on the local disk.  If not, it copies the file to the local hard disk,
  40. then runs the program from there.
  41.  
  42. If the machine does not have a hard disk, the program is run from
  43. the network drive.  The batch file tests to see if the local workstation
  44. has a RAM disk installed (as D:).  If so, it uses the RAM disk as the
  45. /SWAPPATH: location.  If not, the swap files are written to the
  46. network drive.
  47.  
  48. *************************************************************************
  49.  
  50. @echo off
  51. cls
  52. map root m:=sys:asap! >>nul
  53. if not exist c:\PRN goto NETWORK
  54. if not exist c:\asap!\PRN md c:\asap!
  55. if not exist c:\asap!\asap!.exe copy m:\asap!.exe c:\asap! >>nul
  56.  
  57. :LOCAL
  58. c:
  59. asap! /path:m: /r
  60. goto EXIT
  61.  
  62. :NETWORK
  63. set swap=f:\users\%login_name%
  64. if exist d:\PRN set swap=d:\
  65. m:
  66. asap! /r /swappath:%swap%
  67.  
  68. :EXIT
  69. set swap=
  70.