shortFilePath

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the shortFilePath of <filePath>
shortFilePath(<filePath>)
Summary

Returns the 8.3-format equivalent of a Windows long file path.

Introduced1.1
OSmac, windows, linux
Platformsdesktop, server
Parameters
NameTypeDescription
filePath

The location and name of the file or folder whose short equivalent you want. If you specify a name but not a location, LiveCode assumes the file or folder is in the defaultFolder.

Example
the shortFilePath of myPath
if it is the shortFilePath of it then put it into myFilePath
Values
NameTypeDescription
return

The shortFilePath function returns a file path.

RelatedKeyword: file
Property: filename
Function: longFilePath
Glossary: Windows, file path, return
Control Structure: function
Securitydisk
Description

Use the shortFilePath function to obtain the equivalent of a file path in short format for use in situations that require it.

The shortFilePath function transforms the filePath without looking for the file, so it returns a value even if the filePath does not exist.

On Mac OS, OS X, or Unix systems, the shortFilePath simply returns the filePath without changing it.

Tagsfile system