Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function ExtractShortPathName(const S: FullFileName): string;
Returns 8.3 format for a given full path and file name.
If FullFileName contatins no directory or drive information, the result is an empty string.
var s,ss : string;
s := 'C:\Documents and Settings\Default User\
Application Data\Microsoft\Internet Explorer\
brndlog.txt';
ss := ExtractShortPathName(ss);
//ss = 'C:\DOCUME~1\DEFAUL~1\
APPLIC~1\MICROS~1\INTERN~1\
brndlog.txt'
|
From/To the 8.3 Format To/From The Long Format,
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|