How to Get the longfilename from a file?
Answer / Amita Yadav
In Delphi, you can use the `ExtractFilePath` and `ExtractFileName` functions along with `PathAddExtension` function to get the long filename. Here's an example:nn```delphinfunction GetLongFilename(const FileName: string): string;nbeginn Result := PathAddExtension(ExtractFilePath(FileName) + ExtractFileName(FileName)) + '' + ExtractFileName(FileName);nend;n```
| Is This Answer Correct ? | 0 Yes | 0 No |
How to insert contents of a file at current position in TMemo?
How to Converta RGB color to a CMYK color?
Why is there no "Save" button in the save dialog box?
How to Change delphi default directory?
Specify a DefaultExpression for a TField object?
How to Broadcast a message?
How to Convert Data in Paradox Tables to InterBase Using Delphi?
How to Send a file via DCOM ?
"DAX Error - Name not unique in this context" . what does this error mean?
How to Copy a information from one memo field to another using TBlobStream ?
What is DBGo?
Where can we obtain the help file for the VtChart component?