shortFilePath

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

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 1.1 Security: disk

# Syntax

the shortFilePath of filePath

# Params

- 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.

# Examples

the shortFilePath of myPath

if it is the shortFilePath of it then put it into myFilePath

# 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.

# Tags

# See

- **keyword:** file - **property:** filename - **function:** longFilePath - **glossary:** Windows, file path, return - **control structure:** function