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

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.

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.

Example:

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

See also: DisplayName