reference:evaluator:resolve

Resolve(
     path:path,
     [string:flags]
)
path

Arguments

path

Path to resolve.

flags

Optional. The optional flags are:

jResolve junction/softlink target
sResolve shortcut (.lnk) target
pResolve paired folder target
aResolve path to alias (if possible)

When resolving a paired folder, the following flags are also available. If specified, a paired folder's options must match the flags.

dDefault dual-display folder
vDefault Navigation Lock target
nTurn on Navigation Lock automatically
yDefault Synchronize target
lAlways display primary folder at the left/top
uUse path even if it doesn't exist
iIgnore the pair
gGo up to first existing parent

Return value

Resolved path.

Description

This function primarily resolves aliases and environment variables in the provided path (and with the "a" flag, paths are resolved to aliases).

With the additional flags, it can also resolve the target of shortcuts, junctions and links. It can also be used to find a path's paired folder.

When the "a" flag is used, the following flags can also be added:

eAn alias will only be returned if it exactly matches the folder
fIf no matching alias is found, the function will return false

Example:

Output(Resolve("/onedrive"));
--> C:\Users\jon\OneDrive
Output(Resolve("c:\Users\jon\OneDrive", "a"));
--> /onedrive

See also: DisplayName