1. Tech

Your suggestion is on its way!

An email with a link to:

http://delphi.about.com/library/rtl/blrtlCATFileNameUtilities.htm

was emailed to:

Thanks for sharing About.com with others!

Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link Back
File Name Utilities
DELPHI RTL Reference

ChangeFileExt function
Changes the extension part of a string containing full path and file name.

ExcludeTrailingBackslash function
Removes '\' from the end of a string if it is there.

ExpandFileName function
Retrieves the full path and filename of a specified (relative) file.

ExpandUNCFileName function
Retrieves the full path and filename of a specified (relative) file using Universal Naming Convention for network files.

ExtractFileDir function
Returns only only directory or drive information parts of a string containing full path and file name.

ExtractFileDrive function
Returns only drive part of a string containing full path and file name.

ExtractFileName function
Returns only file name and extension parts of a string containing full path and file name.

ExtractFileExt function
Returns the extension part of a string containing full path and file name.

ExtractFilePath function
Returns the drive and directory parts of a string containing full path and file name.

ExtractShortPathName function
Returns 8.3 format for a given full path and file name.

MinimizeName function
Returns a shortened version of a filename (using dots for folders) that fits into some pixel length.

IncludeTrailingBackslash function
Adds '\' to the end of a string if it is not already there.

IsPathDelimiter function
Returns true if a specified character in a string is the backslash (\) character.

MatchesMask function
Returns True is a string value matches a format specifed by a mask.

ProcessPath procedure
Parses a full file name into its drive, path, and file name.

more to come...


 Free Delphi code snippet inside every Delphi Newsletter!
Subscribe to the Newsletter
Name
Email

 Got some code to share? Got a question? Need some help?

©2014 About.com. All rights reserved.