[Overview][Constants][Types][Procedures and functions][Variables] Reference for unit 'Dos' (#rtl)

GetShortName

Get the short (8.3) filename of a long filename.

Declaration

Source position: dosh.inc line 119

function GetShortName(

  var p: String

):Boolean;

Description

This function is only implemented in the GO32V2 and Win32 versions of Free Pascal.

GetShortNamechanges the filename pto a short filename if the API call to do this is successful. The resulting string is the short file name corresponding to the long filename p.

The function returns Trueif the API call was successful, Falseotherwise.

This function should only be necessary when using the DOS extender under Windows 95 and higher.

Errors

If the API call was not successful, Falseis returned.

See also

GetLongName

  

Get the long filename of a DOS 8.3 filename.