filecataloger.com > Script > Function -- GetImportFolderCmd

GetImportFolderCmd Function

Remarks:
Create and return folder import command object. The comand object can catalog a folder to catalog database.
Syntax:

Set ImportFolderCmd = GetImportFolderCmd(GroupName, ImportPath, ParentGroup)

Arguments:
Name Description
GroupName Imported catalog group name.
ImportPath The folder's path that want to import.
ParentGroup The parent group of Imported folder.
 
return value:
Value Description
ImportFolderCmd the folder import command object.
example:

Dim DBPath
DBPath = "c:\sample.fdb"

CreateDB(DBPath)
OpenDB(DBPath)

'Please ensure that the folder's path is exist.
Dim ImportFolderCmd
Set ImportFolderCmd = GetImportFolderCmd("ImportedFolder", "G:\Folder", CatalogDB.CatalogRoot)

If IsObject(ImportFolderCmd) Then MsgBox "The ImportFolderCmd Function is successful!"

   
See Also:

Import Group Command Object

GetImportMoveDiskCmd Function

GetImportCDCmd Function

GetImportLocalDiskCmd Function

©2008 Greendgh Software. All rights reserved. Privacy statement