我想知道是否可以使用VBscript处理整个过程?我有一个M文件,在VBA中,我可以选择引用
之后,我可以使用M-Files API命令执行代码。
Dim oVaultConnections As MFilesAPI.VaultConnections
Dim oDocumentCollectionOVAP As New MFilesAPI.ObjectVersionAndProperties
Dim oOldDocumentOVAP As New MFilesAPI.ObjectVersionAndProperties
Dim oMFClientApp As New MFilesAPI.MFilesClientApplication
On Error Resume Next
Set oVault = oMFClientApp.BindToVault(szVaultName,True,True)
If Err.Number <> 0 Then
' Error
Err.Number = 0
Set oVault = oMFClientApp.BindToVault(oMFClientApp.GetVaultConnectionsWithGUID(szVaultGUID).Item(1).Name,True)
If Err.Number <> 0 Then
MsgBox "Can't connect to M-Files"
End
End If
End If
On Error GoTo 0
On Error GoTo ErrorHandler1
VBScript呢?如果我想创建VBS文件并使用VBScript执行所有操作而不需要VBA(例如Excel文件)怎么办?
在VBScript中,我必须通过以下方式获取所有对象:
Set MFiles = CreateObject("Scripting.MFiles")
是否可以通过dll的位置获取它?如果我的版本将从19.9.8227.13更改怎么办?路径会有所不同吗?