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 ) |
sPath is the path name to abbreviate.
nMaxChars is the maximum number of characters in the abbreviated name.
sNewPath is the returned abbreviated path.
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' |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.