Article View: comp.os.os2.apps
Article #4318Re: Updating of "LIBPATH" after config.sys possible/not possible?
From: summer Summerfield
Date: Sat, 03 Feb 1996 18:24
Date: Sat, 03 Feb 1996 18:24
59 lines
3584 bytes
3584 bytes
In <DM4JAM.5t5@iquest.net>, jlrowe@holli.com (Jerry Rowe) writes: >In <4ep28c$7u3@harbinger.cc.monash.edu.au>, jhs@rdt.monash.edu.au (Jobst Schmalenbach) writes: >>Hi netters, >> >> I have read (well I am not quite sure) that it is possible to >>update the "LIBPATH" after boot time, ie from a shell. >> >>Could somebody please send me the necessary information if one >>can update the libpath? Here is an extract from my online documentation: The LIBPATH, which is set in CONFIG.SYS, specifies a search path which the OS/2 operating system uses when searching for dynamic link libraries (DLLs). The LIBPATH is set during system startup and cannot be changed dynamically. The OS/2 operating system provides the capability of specifying extensions to the LIBPATH. An Extended LIBPATH is a path which is searched in conjunction with the system LIBPATH, but which can be changed dynamically, either by the user from the command line, or by an application. There are two Extended LIBPATHs: BeginLIBPATH, which is searched before the system LIBPATH, and EndLIBPATH, which is searched after the system LIBPATH. Extended LIBPATHs are ASCIIZ strings which are formatted in the same manner as the system LIBPATH, that is, they contains a list of subdirectory paths separated by semicolons. The maximum size for each Extended LIBPATH is 1024 characters. Applications can use DosSetExtLIBPATH to set the Extended LIBPATHs. Likewise, they can use DosQueryExtLIBPATH to query the value of either of the Extended LIBPATHs. A flag parameter for the function specifies whether the BeginLIBPATH or the EndLIBPATH is being set or queried. The flag allows two values: BEGIN_LIBPATH (1) which will set or query BeginLIBPATH, or END_LIBPATH (2) which will set or query EndLIBPATH. You can call DosSetExtLIBPATH as often as you want. The new Extended LIBPATH that you pass in will replace the current Extended LIBPATH. You can specify the current Extended LIBPATH as part of the argument by using the % symbol before and after the Extended LIBPATH variable name, that is, as %BeginLIBPATH% or %EndLIBPATH%. For example, suppose you set BeginLIBPATH to "D:\MYDLLS", then later you want to add "D:\TOMSDLLS" before the existing BeginLIBPATH, and "D:\JOESDLLS" after the existing BeginLIBPATH (that is, you want to change BeginLIBPATH to "D:\TOMSDLLS;D:\MYDLLS;D:\JOESDLLS"). You could accomplish this by using "D:\TOMSDLLS;%BeginLIBPATH%;D:\JOESDLLS" as the argument for DosSetExtLIBPATH. The string argument can be up to 1024 characters long. However, if the resulting Extended LIBPATH is longer than 1024 characters, the function will return an error. Here's how I found it. Open OS/2 Command Reference Search for endlibpath in ALL libraries. I'm not sure where it's found - it SAYS OS/2 command reference but seaching in one library doesn't turn it up. Cheers John Summerfield Warped & Connected Perth, Western Australia
Technical Details
Message-ID:
<4f098f$acr@opera.iinet.net.au>Path:
arc1-ca.pugleaf.net!opera.iinet.net.au!newsReferences:
<4ep28c$7u3@harbinger.cc.monash.edu.au> <DM4JAM.5t5@iquest.net>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!opera.iinet.net.au!news From: summer@jimi.vianet.net.au Summerfield) Newsgroups: comp.os.os2.apps,comp.os.os2.setup.misc,comp.lang.rexx,comp.os.os2.misc Subject: Re: Updating of "LIBPATH" after config.sys possible/not possible? Date: 3 Feb 1996 18:24:15 GMT Organization: Open to offers Message-ID: <4f098f$acr@opera.iinet.net.au> References: <4ep28c$7u3@harbinger.cc.monash.edu.au> <DM4JAM.5t5@iquest.net> Reply-To: summer@iinet.net.au(John Summerfield) NNTP-Posting-Host: grunge113.nv.iinet.net.au X-Newsreader: IBM NewsReader/2 v1.2