RenameFilesToObjectName
Description
Renames all the files in a Multi File Document object to the same name as the containing object, The object must be checked out. All the files in the Multi File Document must have different file extensions. Otherwise the method will fail due to duplicate filenames.
Syntax
Sub RenameFilesToObjectName(Vault As Vault, ObjVer As ObjVer)
Parameters
Name |
Data Type |
Description |
Vault |
Vault object containing the object to process |
|
ObjVer |
ObjVer of the object to process |
Return
No return value.
Example
'create Pentagon DOCS Script Library object
Set scriptLib = GetExtensionObject("PentagonDOCS.Core.ScriptLibrary")
'rename files to object name
scriptLib.RenameFilesToObjectName Vault, ObjVer