RemoveFilesWithExtension
Description
Removes all the files in a Multi File Document object with the specified file extension, The object must be check out.
Syntax
Sub RemoveFilesWithExtension(Vault As Vault, ObjVer As ObjVer, Extension As String)
Parameters
Name |
Data Type |
Description |
Vault |
The vault containing the object to process |
|
ObjVer |
ObjVer of the object to process. |
|
Extension |
String |
Extension of files to remove |
Return
No return value.
Example
'create Pentagon DOCS Script Library object
Set scriptLib = GetExtensionObject("PentagonDOCS.Core.ScriptLibrary")
'remove files with PDF extension
scriptLib.RemoveFilesWithExtension Vault, ObjVer, "PDF"