filecataloger.com > Script > Function -- ImportFile

ImportFile Function

Remarks:
Importing a File specified by file path to file catalog database.
Syntax:

Set ImportedFile = ImportFile(FilePath, ParentGroup)

Arguments:
Name Description
FilePath The file path want to import.
ParentGroup The parent file catalog group.
 
Return value:
Name Description
ImportedFile The imported file catalog item.
example:

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

CreateDB(DBPath)
OpenDB(DBPath)

Dim ImportedFile
Set ImportedFile = ImportFile("C:\AUTOEXEC.BAT", pg)

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

   
See Also:

GetImportFolderCmd Function

GetImportCDCmd Function

GetImportLocalDiskCmd Function

GetImportMoveDiskCmd Function

©2008 Greendgh Software. All rights reserved. Privacy statement