filecataloger.com > Script > Function -- GetImportLocalDiskCmd

GetImportLocalDiskCmd Function

Remarks:
Create and return local disk import command object. The command object can catalog a local disk.
Syntax:

Set ImportLocalDiskCmd = GetImportLocalDiskCmd(GroupName, ImportPath, ParentGroup)

Arguments:
Name Description
GroupName Imported catalog group name.
ImportPath The local disk's path to import.
ParentGroup The parent group of Imported local disk.
 
return value:
Value Description
ImportLocalDiskCmd The local disk import command object.
example:

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

CreateDB(DBPath)
OpenDB(DBPath)

'Please ensure that the local disk is exist.
Dim ImportLocalDiskCmd
Set ImportLocalDiskCmd = GetImportLocalDiskCmd("LocalDiskC", "C:", CatalogDB.CatalogRoot)

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

   
See Also:

Import Group Command Object

GetImportMoveDiskCmd Function

GetImportCDCmd Function

GetImportFolderCmd Function

©2008 Greendgh Software. All rights reserved. Privacy statement