I'm trying to replicate this VBSctipt code (from QTP) into JScript code for TC. The DLL that I'm trying to use is already registered. Here is the working VBScript code:
<font class="small">Code:</font><hr /><pre> Set objMD5 = CreateObject("XStandard.MD5")
hash1 = objMD5.GetCheckSumFromFile("C:\tmp\common1.qfl")
hash2 = objMD5.GetCheckSumFromFile("C:\tmp\common2.qfl")
Set objMD5 = Nothing </pre><hr />
I've looked at the DLL tutorial in TC, and it's just not making sense to me. So many steps, it's pretty confusing. Anyone who is really good at JScript care to take a whack at this? I'm just looking for the equivalent code to do this.
WooHooo! Thanks Robert, that was exactly what I needed. I suppose I should have seen it (as the tutorial talks about OLE all over the place). This is better (I think) than the hashmap from Files like you mentioned before. Files.hashmap isn't really supported any longer.