[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 version of Free Pascal.

GetShortName changes the filename p to a short filename if the dos call to do this is successful. The resulting string is the short file name corresponding to the long filename p.

The function returns True if the dos call was successful, False otherwise.

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

Errors

If the dos call was not successful, False is returned.

See also

GetLongName

  

Get the long filename of a DOS 8.3 filename.