home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / libpatht.zip / LIBPATH.TXT < prev   
Text File  |  1995-08-29  |  3KB  |  110 lines

  1. LIBPATH.EXE provides a quick and easy way to list the OS/2 LIBPATH directories
  2. in a readable ordered format, and to search for instances of a particular
  3. Dynamic Link Library (DLL) found in the LIBPATH directories.
  4.  
  5. Requirements: OS/2 v2.0 and above
  6.  
  7. USAGE: LIBPATH [/?] [/q] [DLLNAME]
  8.  
  9.  /?      - Display this information.
  10.  /q      - Execute in QUIET mode;  Returns result of search
  11.  DLLNAME - Specific DLL to search for
  12.  
  13.  
  14. Displaying LIBPATH Directories
  15. ==============================
  16.  
  17. With no command arguments, LIBPATH.EXE lists the LIBPATH directories in order.
  18. If running on WARP, the additional BEGINLIBPATH and ENDLIBPATH environment
  19. variable directories are listed as well.
  20.  
  21. Sample output: LIBPATH - no arguments
  22.  
  23. >BEGINLIBPATH Directories
  24. >
  25. >    1. k:\btrieve\os2
  26. >
  27. >
  28. >LIBPATH Directories:
  29. >
  30. >    2. E:\TOOLKIT3\SOM\COMMON\DLL
  31. >    3. E:\TOOLKIT3\SOM\LIB
  32. >    4. E:\TOOLKIT3\DLL
  33. >    5. D:\MMOS2\DLL
  34. >    6. <Current Directory>
  35. >    7. D:\
  36. >    8. E:\CICS200\BIN
  37. >    9. D:\OS2\DLL
  38. >   10. D:\OS2\MDOS
  39. >   11. D:\OS2\APPS\DLL
  40. >   12. D:\LANWP\DLL
  41. >   13. D:\IBMCPP\DLL
  42. >   14. D:\SPM2V2
  43. >   15. D:\SSAVER
  44. >   16. D:\OPENSHUT
  45. >   17. D:\CPUMONP
  46. >   18. E:\TCPIP\DLL
  47. >   19. E:\TCPIP\UMAIL
  48. >   20. D:\NETWARE
  49. >   21. D:\NETWARE\NLS\ENGLISH
  50. >   22. D:\OBJDESK
  51. >
  52. >
  53. >ENDLIBPATH Directories
  54. >
  55. >   23. z:\os2\miscapps
  56.  
  57.  
  58. Seaching For DLL Instances
  59. ==========================
  60.  
  61. If a DLL name is provided, all LIBPATH directories will be searched for
  62. instances of the specified DLL.  All DLLs found are listed under the LIBPATH
  63. directory in which they were found.  Each DLL is listed along with it's
  64. timestamp and file size information.
  65.  
  66. Sample output:  LIBPATH btrcalls
  67.  
  68. >BEGINLIBPATH Directories
  69. >
  70. >  1. k:\btrieve\os2 :
  71. >    btrcalls.dll          77639  08-24-95  11:18a
  72. >
  73. >
  74. >LIBPATH Directories:
  75. >
  76. >  7. D:\ :
  77. >    btrcalls.dll          77639  08-25-95  10:37a
  78. >
  79. >
  80. >ENDLIBPATH Directories
  81.  
  82.  
  83. Batch File Usage
  84. ================
  85.  
  86. Used in a batch .CMD file to search for DLLs, it will return an errorlevel
  87. of 0 if the specified DLL is found.
  88.  
  89. Example: Pass a DLL name to this .CMD file to echo the search result.
  90.  
  91.    call libpath /q %1
  92.    if errorlevel 1 goto :notfound
  93.    echo %1 was found
  94.    goto :end
  95.    :notfound
  96.    echo %1 was not found
  97.    :end
  98.  
  99.  
  100. LIBPATH.EXE is ShareWare.
  101.  
  102. If you find this utility program useful, support the ShareWare concept.
  103. Send a check for whatever ($5-10) you feel this tool is worth to you to:
  104.  
  105. Shane Petty
  106. 1821 Spillman Street
  107. Austin, Texas 78704
  108.  
  109. Thank You.
  110.