ShortFileName

Description:

baShortFileName returns the short name of a long filename.

Platforms:

Windows and Macintosh

Usage:

Result = baShortFileName( LongFileName )

Arguments:

String.
LongFileName is the name of the file. You must supply the full path name to the file.

Returns:

String.
Returns the file name in DOS format. If the file doesn't exist, then the return will be an empty string.

Examples:

Director:
ShortName = baShortFileName( "c:\Program Files\Accessories\Wordpad.exe" )

Authorware:
ShortName := baShortFileName( "c:\\Program Files\\Accessories\\Wordpad.exe" )
 

Notes:

On Macintosh, this function will only work with and return HFS names.
 

See also:

baLongFileName