Hmm, we do maintain some server version information handy, internally at the Factory classes. But this information is not accessible thru ActiveX, but rather kept internally incapsulated to the C++ classes (CCacheLink to be specific). As a quick'n'dirty work-around I'd suggest you to use Factory.Static method to get access to %SYSTEM.Version facilities from VB(VBS). Something like this (beware of VBS syntax I use here!):

        Dim Factory, Obj

        ' Create an instance of the CacheObject Factory
        Set Factory = WScript.CreateObject("CacheObject.Factory")
        Factory.Connect "cn_iptcp:127.0.0.1[1972]:SAMPLES"
        WScript.Echo "Created Factory Object"

        ' System build version
        Set Obj = Factory.Static("%SYSTEM.Version")
        WScript.Echo "%System.Version.GetMajor(): " & Obj.GetMajor()
        WScript.Echo "%System.Version.GetMinor(): " & Obj.GetMinor()

        Set Obj = Nothing
        Set Factory = Nothing

See Cache' documatic for information about other useful methods in that 
%SYSTEM.Version:

http://localhost:1972/apps/documatic/_CSP.Documatic.cls?PAGE=CLASS&LIBRARY=%25CACHELIB&CLASSNAME=%25SYSTEM.Version

Regards,
Timur

On 11.05.2004 13:04, G.T. said the following:
I need to check this from my application, and it's not nice to rely on
hardcoded paths. Also there could be several CacheObject.dll in the system,
but only one registered. I need to know, after calling factory.Connect,
which is the version number of the client currently used.





Reply via email to