A newer version of Max is available. Click here to access the latest version of this document.

relativepath

Convert an absolute to a relative path

Description

relativepath will convert an absolute path to one that is relative to the Max application folder.

Arguments

None.

Messages

anything absolute-pathname [list]
An absolute pathname of a folder or file as a symbol. An absolute pathname looks like this:
'MyDisk:/Max Folder/extras/filename'

Information for box attributes common to all objects

Output

symbol: The pathname of the folder or file relative to the Max application folder as a symbol. If the input pathname is within the Max application folder, the path is changed to start with a dot-slash (./) followed by the folder names of the path. Otherwise, the input is repeated to the output.

Examples

See Also

Name Description
absolutepath Convert a file name to an absolute path
conformpath Convert paths of one pathtype and/or pathstyle to another
opendialog Open a dialog to ask for a file or folder
strippath Get a filename from a full pathname