This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to Include M-File dll in VB script

Former Member
Former Member
Hi EveryBody ,

I just want to know how can we load and register Interop.MFilesAPI.dll
in vbscript And how can i access its method like CreateNewObject in vb script.

Hopes of all yours + response
  • The M-Files Interop dll is a COM Interop dll and you should not need (or even be able to use) this in VBScript. VBScript is already COM-aware language and can use the COM types directly.


    Dim app: Set app = CreateObject("MFilesAPI.MFilesClientApplication")
    Dim vault: Set vault = app.BindToVault("Sample Vault", 0, false, false)
    vault.ObjectOperations.CreateNewObject(...)


    - Mikko
  • Former Member
    Former Member
    Thank You MIKKO,


    Respected Sir your code is successfully work.
    Thanks for your Help.

    Yours Faithfully
    Subrata