AbbrevPath
The AbbrevPath function returns a string that is an abbreviated form of a file path. The returned string is no longer than a specified number of characters. The original name is unchanged.
sNewPath = AbbrevPath( sPath, nMaxChars ) |
Suppose a file has the path name 'C:\My Folder\My File.txt'. Then
|
-- open the file as text, for read and write |
|
-- prints 'C:\My Folder\My File.txt' |
|
-- prints 'C:\...\My File.txt' |