Class Module 29 Members ★ 2 Top 20

File Names Class

Entisoft Tools 2.0 Object Library · FileNames · 19 Functions · 7 Properties · 2 Subroutines

Showing 29 of 29
Declarations
Declarations
File information functions and functions related to file names. Copyright 1998 Entisoft
Section
DOSFileNameCharacters
DOS File Name Characters
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.
Property
SizeDOSDirectoryName
Size DOS Directory Name
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.
Property
SizeDOSExtension
Size DOS Extension
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.
Property
SizeDOSFileName
Size DOS File Name
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.
Property
SizeDOSFilter
Size DOS Filter
Property whose constant value is the maximum length for DOS file name filters. For example, "C: \TEMP\*.IDX" could be considered a DOS filter.
Property
SizeDOSPath
Size DOS Path
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.
Property
SizeDOSPrefix
Size DOS Prefix
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.
Property
CombineDriveAndPath
Combine Drive And Path
Combines the drive and path name portions of a file name to produce an absolute path name.
Function
CombinePathAndFile
Combine Path And File
Combine a path name with a file name, inserting the appropriate separator.
Function
CombinePrefixAndExtension
Combine Prefix And Extension
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.
Function
DirToVariantVector
Dir To Variant Vector
"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.
★ Top 20 Function
FileNameStringAccessV1
File Name String Access V1
"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.
Function
FileNameStringAccessV2
File Name String Access V2
"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.
Function
FindFileInDirectoryList
Find File In Directory List
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".
Function
FindFileUpwards
Find File Upwards
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.
Function
IncrementFileName
Increment File Name
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.
Function
IncrementFileNameSimple
Increment File Name Simple
Simple method for incrementing a file name. Increments the Name portion of the file, using the characters allowed for DOS files.
Function
IsPathRelative
Is Path Relative
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.
Function
MakeDirectory
Make Directory
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.
Function
MakePathAbsolute
Make Path Absolute
Creates an absolute path name from one that may be relative.
Function
PathAndNamesStringToVariantVector
Path And Names String To Variant Vector
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.
Function
RandomFilePrefix
Random File Prefix
Returns eight random characters which are all valid within DOS file names. Useful for generating random DOS- and Windows-compatible file names.
Function
SeparateDriveAndPath
Separate Drive And Path
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.
Function
SeparatePathAndFile
Separate Path And File
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.
★ Top 20 Function
SeparatePrefixAndExtension
Separate Prefix And Extension
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.
Function
UniquePathNamesVariantVector
Unique Path Names Variant Vector
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.
Function
DirToVariantVectorSample
Dir To Variant Vector Sample
View VB6 signature, parameters, and usage notes.
Sub
SeparatePathAndFileSample
Separate Path And File Sample
View VB6 signature, parameters, and usage notes.
Sub