home *** CD-ROM | disk | FTP | other *** search
/ Chip Hitware 2 / Chip_Hitware_Vol_02.iso / chiphit2 / tools / system / smonitor / cfgcntrl next >
Text File  |  1995-01-10  |  4KB  |  83 lines

  1.  
  2. The  following  review  appeared  in the April 11,  1994  issue  of  Infoworld 
  3. Magazine on page 30.
  4.  
  5.                       Window Manager / Brian Livingston
  6.  
  7.           Control your Windows configuration with these nifty tools
  8.  
  9.  
  10. Having  multiple Windows configurations is a royal pain. I've written  before 
  11. about  trying  to  maintain different configurations for  different  users  by 
  12. switching  between separate WIN.INI and PROGMAN.INI files. But  changes  that 
  13. are made to INI files by installed applications only affect the current set of 
  14. INI files. So this approach works only when you have a very simple  alternate 
  15. configuration that rarely changes. For example, you want your child to see  a 
  16. Program Manager with nothing but a Games group, which you set up.
  17.  
  18. Now  a  new  edition  of some much needed tools provides  a  powerful  way  to 
  19. maintain alternate Windows configurations on the same machine - with a  single 
  20. set of INI files.
  21.  
  22. The  software is called Tessler's Nifty Tools (TNT). This is a collection  of 
  23. some 30 DOS and Windows utilities, each of which solves a specific problem.
  24.  
  25. I  last wrote about TNT in the August 30,1993 issue  ("Microsoft's  SmartDrive 
  26. update  confronts  common  data loss," page 28). At that  time,  one  of  its 
  27. utilities,  VERS,  gave  me a handy way to trick a program  that  requires  a 
  28. certain DOS version, but isn't fooled by Microsoft's SETVER.
  29.  
  30. With  release  3.6, TNT adds a versatile item to its  toolbox  -  Config 
  31. Control   (CFGCNTRL.EXE).  This  utility  allows  you  to  determine   whether 
  32. particular lines exist within WIN.INI, SYSTEM.INI, or any text file.
  33.  
  34. You can then add or delete certain lines or whole sections. In this way,  you 
  35. can determine the Windows configuration you want in place when Windows  starts 
  36. up.
  37.  
  38. Portable computers provide one example of how handy this can be. Laptop 
  39. users  may  be connected directly to a network while in the office,  but  must 
  40. dial in to the network when on the road.
  41.  
  42. Windows  handles  this  kind  of situation poorly.  You  might  need  to  use 
  43. different  video  drivers:  one  for an office monitor  and  another  for  the 
  44. internal monochrome screen when the monitor is not available.
  45.  
  46. Similarly,  you  might  need different PROTOCOL.INI settings  when  using  LAN 
  47. software in the office than when using remote-access software.
  48.  
  49. Trying  to  maintain  separate SYSTEM.INI and  PROTOCOL.INI  files  for  these 
  50. different configurations is a nightmare.
  51.  
  52. With  Config Control, you can use a single set of INI files. You first use  a 
  53. batch file or other means to determine whether the LAN or remote configuration 
  54. is  appropriate. Config Control then deletes inappropriate lines in your  INI 
  55. files and adds the lines you need.
  56.  
  57. This  process is controlled from commands in your AUTOEXEC.BAT file, or  in  a 
  58. separate  text file you create. Usually, you need to edit only two  or  three 
  59. lines in an INI file in order to switch the affected drivers.
  60.  
  61. Other  TNT  utilities  provide  more capabilities  that  Windows  lacks.  For 
  62. example,  Windows  has almost no capability to detect  current  conditions  in 
  63. order to change its configuration - you usually must run setup.
  64.  
  65. Tessler's  If-On-Screen  (IFONSCRN) comes to your rescue. It can  detect  any 
  66. text that is displayed on your screen and take appropriate action.
  67.  
  68. For example, if access to a network device fails (because the network is  down 
  69. or  not  attached), If-On-Screen can read the "Device not found"  message  and 
  70. branch accordingly. With this capability, you can anticipate situations  that 
  71. a Windows configuration should be able to handle.
  72.  
  73. Once  you've detected the current status, you can run a Config Control  script 
  74. or pass keystrokes to any foreground application.
  75.  
  76. You can even control any mechanical device that's attached to a parallel port. 
  77. This  allows you to set off a loud alarm attached to a computer that is  in  a 
  78. distant room (using the IfBuzz device that Tessler's company also sells), have 
  79. a dialer call your pager, and so on.
  80.  
  81. Send  $29  for  CfgCntrl, $29 for IfOnscrn, or $159 for the whole  set  of  30 
  82. utilities.
  83.