filecataloger.com > Script > Function -- GetImportCDCmd

GetImportCDCmd Function

Remarks:
Create and return cdrom import command object. the comand object can catalog cd's content.
Syntax:

Set ImportCDCmd = GetImportCDCmd(GroupName, ImportPath, ParentGroup)

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

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

CreateDB(DBPath)
OpenDB(DBPath)

'Please ensure the drive G have a cdrom.
Dim ImportCDCmd
Set ImportCDCmd = GetImportCDCmd("MyCD", "G:",ˇˇCatalogDB.CatalogRoot)

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

   
See Also:

Import Group Command Object

GetImportMoveDiskCmd Function

GetImportFolderCmd Function

GetImportLocalDiskCmd Function

©2008 Greendgh Software. All rights reserved. Privacy statement