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 = NothingSee 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.
