File Names Class

Entisoft Tools 2.0 Object Library
Version 2.1 Build 208
<-- Previous || Index || Main || Topics || Next -->

Declarations Section, CombineDriveAndPath Function, CombinePathAndFile Function, CombinePrefixAndExtension Function, DirToVariantVector Function, DirToVariantVectorSample Sub, DOSFileNameCharacters Property, FileNameStringAccessV1 Function, FileNameStringAccessV2 Function, FindFileInDirectoryList Function, FindFileUpwards Function, IncrementFileName Function, IncrementFileNameSimple Function, IsPathRelative Function, MakeDirectory Function, MakePathAbsolute Function, PathAndNamesStringToVariantVector Function, RandomFilePrefix Function, SeparateDriveAndPath Function, SeparatePathAndFile Function, SeparatePathAndFileSample Sub, SeparatePrefixAndExtension Function, SizeDOSDirectoryName Property, SizeDOSExtension Property, SizeDOSFileName Property, SizeDOSFilter Property, SizeDOSPath Property, SizeDOSPrefix Property, UniquePathNamesVariantVector Function

Declarations Section
Combine Drive And Path Function
Combines the drive and path name portions of a file name to produce an absolute path name.
Combine Path And File Function
Combine a path name with a file name, inserting the appropriate separator.
Combine Prefix And Extension Function
Combine the prefix and extension portions of a file name. In the file name "WIN.INI", "WIN" if the prefix and "INI" is the extension.
Dir To Variant Vector Function
"Directory To Variant Vector" Reads the list of files in a directory into a one-dimensional array of Variant values. Optionally includes the names of files in all subdirectories. Function returns True upon success and False upon failure.
Dir To Variant Vector Sample Sub
Sample of the DirToVariantVector function.
DOS File Name Characters Property
String containing each of the characters that are valid within DOS file names. These characters are sorted based on their ASCII value. This string does not contain the lower-case alphabetic characters because DOS file names are not case sensitive.
File Name String Access V1 Function
"File Name String Microsoft Access Version 1" Abbreviate a string, producing something similar to a file name. Creates a file name similar to those created by Microsoft Access Version 1.0 when Access must create a file name associated with an object that can have a long name.
File Name String Access V2 Function
"File Name String Microsoft Access Version 2" Abbreviate a string, producing something similar to a file name. Creates a file name similar to those created by Microsoft Access Version 2.0 when Access must create a file name associated with an object that can have a long name.
Find File In Directory List Function
Return the name of the first directory in the string list that contains a specific file. For example, find "DAO2016.DLL" within the directory list "C:\WINDOWS C:\WINDOWS\SYSTEM C:\WINDOWS\OLESVR".
Find File Upwards Function
Find the first file named vPath by starting in some directory and searching up the directory hierarchy until the drive root is reached. For example, search for "FTPINFO.TXT" in "C:\ENTISOFT\TOOLS", "C:\ENTISOFT" and "C:\" Return empty string if the named file was not found.
Increment File Name Function
Better method for incrementing a file name. Increments the Name portion of the file name by incrementing the number portion at the end of the name.
Increment File Name Simple Function
Simple method for incrementing a file name. Increments the Name portion of the file, using the characters allowed for DOS files.
Is Path Relative Function
Determine if a path name is relative to the "current" directory on some drive or whether it is absolute. Function returns True if the path name is relative and False if it is absolute.
Make Directory Function
Create the named directory even if the other directories along the path do not currently exist. Function returns True upon success and False if the directory cannot be created for any reason.
Make Path Absolute Function
Creates an absolute path name from one that may be relative.
Path And Names String To Variant Vector Function
Converts a string containing either 1) a file name or 2) a directory name and list of file names into a Variant array of path names. This function "normalizes" the result string from the Windows Open File Dialog Box.
Random File Prefix Function
Returns eight random characters which are all valid within DOS file names. Useful for generating random DOS- and Windows-compatible file names.
Separate Drive And Path Function
Separate a path name like "C:\WINDOWS\USER.EXE" into its Drive ("C:") and Path ("\WINDOWS\USER.EXE") components. Function returns True upon success and False upon failure.
Separate Path And File Function
Separate a path name like "C:\WINDOWS\USER.EXE" into its Path ("C:\WINDOWS") and Name ("USER.EXE") components. Remove the last path separator "\" unless it immediately follows the drive separator ":". Function returns True upon success and False upon failure.
Separate Path And File Sample Sub
Print some samples of the SeparatePathAndFile function.
Separate Prefix And Extension Function
Separate a file name like "C:\WINDOWS\USER.EXE" into its Path ("C:\WINDOWS\USER") and Extension ("EXE") components. Removes the separator (".") between the Path Name and Extension, if any. Remove the last path separator "\" unless it immediately follows the drive separator ":". Function returns True upon success and False upon failure.
Size DOS Directory Name Property
Property whose constant value is the maximum length for DOS directory names. For example, within the full path name "C:\TEMP\SYSTEM.IDX", "C:\TEMP" would be directory name.
Size DOS Extension Property
Property whose constant value is the maximum length for DOS file name extensions. For example, within the full path name "C:\TEMP\SYSTEM.IDX", "IDX" would be extension.
Size DOS File Name Property
Property whose constant value is the maximum length for DOS file names. For example, within the full path name "C:\TEMP\SYSTEM.IDX", "SYSTEM.IDX" would be the file name.
Size DOS Filter Property
Property whose constant value is the maximum length for DOS file name filters. For example, "C:\TEMP\*.IDX" could be considered a DOS filter.
Size DOS Path Property
Property whose constant value is the maximum length for DOS path names. For example, "C:\TEMP\SYSTEM.IDX" and "SYSTEM.IDX" and "C:\TEMP" are all examples of path names.
Size DOS Prefix Property
Property whose constant value is the maximum length for DOS file name prefixes. For example, within the path name "C:\TEMP\SYSTEM.IDX", "SYSTEM" would be prefix.
Unique Path Names Variant Vector Function
Function converts the path names in an array to absolute path names them removes the duplicates. Function returns True upon success and False upon failure.

This Windows-based ActiveX DLL provides many useful routines through its function-bearing and data structure classes. Consult the Help file for more information, or call us at 1-310-472-3736. For the latest news and files, visit our home page on the World Wide Web: http://www.entisoft.com

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.