home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / d / dvins.zip / DVINS.DOC < prev    next >
Text File  |  1993-03-18  |  2KB  |  54 lines

  1. March 18,1993
  2.  
  3. DVINS is a very simple program which tells you whether DesqView is
  4. loaded or not, and (if it is) what version you have.  This isn't very
  5. interesting in most circumstances, except that DVINS also returns the
  6. version number in its exit code.  Therefore, you can use DVINS in batch
  7. files to avoid starting programs which would crash DesqView, and you can
  8. guarantee that DesqView programs are being run under an appropriate
  9. version.
  10.  
  11. In my experience, disk compressors, games and tape backup utilities can
  12. pose the greatest problems when Desqview is loaded. For example, to
  13. prevent Compress from starting under DesqView, try a batch file like:
  14.  
  15. @echo off
  16. dvins
  17. if errorlevel 1 goto dvloaded
  18. c:\pctools\compress
  19. goto end
  20.  
  21. :dvloaded
  22. echo Can't start PcTools Compress when DesqView is active.
  23. echo Quit DesqView and try again!
  24. :end
  25.  
  26.  
  27. Since the DOS exit code (what you test for in an IF ERRORLEVEL
  28. statement) is an integer that can be no higher than 255, DVINS can only
  29. return either the major or minor version number in a single call.  I
  30. have elected to return just the major version number.  If you have
  31. DesqView version 2.42, for example, the major version number is 2 and
  32. the minor version number is 42. DVINS will return the errorlevel of 2.
  33.  
  34. DVINS is released into the public domain so you can do what you want
  35. with it.
  36.  
  37. Statement of Limited Liability.
  38.  
  39. David Johnson will not be liable for special, incidental, consequental,
  40. or any other damages resulting from use of this program.
  41.  
  42. If you find any bugs, have any comments, suggestions, or improvements to
  43. offer, please contact the author:
  44.  
  45. Either via Snail-mail:
  46.  
  47. David Johnson
  48. 507-151 Queen Street North
  49. Hamilton, Ontario, Canada
  50. L8R 2V7
  51.  
  52. I can also be reached via Fidonet (1:244/117), NorthAmerica Net or ILnk
  53. in the C programming conferences.  Enjoy.
  54.