Hello Everyone,
I am trying to access VSS Automation APIs through coldfusion to find out the
version of a file
<cfobject type = "COM"
action = "create"
class = "SourceSafeTypeLib.VSSDatabase"
name = "vss">
<cfscript>
vss.open("\\servername\SRCSAFE.INI", "username", "password");
Ver = vss.VSSItem("$\filepath\filename.cfm").VersionNumber();
</cfscript>
<cfoutput>#Ver#</cfoutput>
However, I get following error
The cause of this exception was that:
coldfusion.runtime.com.ComObjectInstantiationException: An exception occurred
when instantiating a Com object..
The error occurred in E:\TestDir\test.cfm: line 21
Called from E:\TestDir\test.cfm: line 21
19 : <cfobject type = "COM"
20 : action = "create"
21 : class = "SourceSafeTypeLib.VSSDatabase"
22 : name = "vss">
23 : </cfcatch>
I have installed VSS client on the WebServer. So all the required DLLs should
be available. To Verify, I tried to access the same VSS Automation APIs through
VB, compiled an exe and it worked fine on the same server.
Am I missing something?
TIA
RB
Ben - 12 Aug 2004 19:37 GMT
Try this:
<cfobject type = "COM"
action = "create"
class = "SourceSafe"
name = "vss">
<cfdump var=#vss#>
> Hello Everyone,
>
[quoted text clipped - 36 lines]
> TIA
> RB
khitlin - 31 Jan 2006 17:51 GMT
Anyone doing this with CFMX 7? I want to query our VSS database into CFTREE or something like that.
Where do you set up the COM object within CF?