FileEx
Previous  

The FilesEx object provides the following methods and properties.


Methods

DirectoryStringInfo(Path As String) : Returns a string array of length 4 containing information about the directory specified by Path. Index 0 is the directory attributes, 1 is the creation time and date, 2 is the last access time and date, 3 is the last write time and date.

DirectoryDoubleInfo(Path As String) : Returns a double array of length 4 containing information about the directory specified by Path. Index 0 is the directory attributes as a bit pattern, 1 is the creation time and date in ticks, 2 is the last access time and date in ticks, 3 is the last write time and date in ticks.

DirectoryCopy(SrcPath As String, DestPAth As String) : SrcPath is the source directory. DestPath is the name and path to which to copy this directory. The destination can be an existing directory to which you want to add this directory as a subdirectory.  Returns false if SrcPath is not valid otherwise returns true.

DirectoryCopyTree(SrcPath As String, DestPAth As String) : SrcPath is the source directory. DestPath is the name and path to which to copy this directory and its' sub-directories. The destination can be an existing directory to which you want to add this directory as a subdirectory.  Returns false if SrcPath is not valid otherwise returns true.

DirectoryMoveTree(SrcPath As String, DestPAth As String) : SrcPath is the source directory. DestPath is the name and path to which to move the contents of this directory and its' subdirectories. Note that the original directory remains empty. The destination cannot be another disk volume or a directory with the identical name. It can be an existing directory to which you want to add this directory as a subdirectory. Returns false if SrcPath is not valid otherwise returns true. This method throws an IOException if, for example, you try to move c:\mydir to c:\public, and c:\public already exists. You must specify "c:\public\mydir" as the destDirName parameter, or specify a new directory name such as "c:\newdir".

DirectoryRename(SrcPath As String, NewName As String) : SrcPath is the source directory. NewName is the name for this directory. The destination cannot be another disk volume or a directory with the identical name.  Returns false if SrcPath is not valid otherwise returns true. As there is no real Rename function in .NET this is actually a DirectoryMoveTree  to the old path with a new name.


FileStringInfo(FilePath As String) : Returns a string array of length 5 containing information about the filespecified by FilePath. Index 0 is the file attributes, 1 is the file length, 2 is the creation time and date, 3is the last access time and date, 4 is the last write time and date.

FileDoubleInfo(FilePath As String) : Returns a double array of length 5 containing information about the file specified by FilePath. Index 0 is the file attributes as a bit pattern, 2 is the creation time and date in ticks, 3 is the last access time and date in ticks, 4 is the last write time and date in ticks.

FileMove(FilePathOld As String, FilePathNew As String) : Moves the file at FilePathOld to FilePathNew. FilePathNew must include the name of the file which may be different from the original. Returns false if FilePathOld is not valid otherwise returns true.

FileRename(FilePathOld As String, FileNameNew As String) : Renames the file at FilePathOld to FileNameNew.  Returns false if FilePathOld is not valid otherwise returns true. As there is no real Rename function in .NET this is actually a FileMove within the same directory.

GetDirectories(Path As String, Pattern as String) : Returns a string array containing the names of all directories within the directory specified by Path and matching the search pattern.

GetFiles(Path As String, Pattern as String) : Returns a string array containing the names of all files within the directory specified by Path and matching the search pattern.


Properties

I signifies readable, O signifies settable.


DllVersion : Double [I] : Returns the version number of the library.