Resolve(
path:path,
[string:flags]
)
→ path
| j | Resolve junction/softlink target |
| s | Resolve shortcut (.lnk) target |
| p | Resolve paired folder target |
| a | Resolve path to alias (if possible) |
| d | Default dual-display folder |
| v | Default Navigation Lock target |
| n | Turn on Navigation Lock automatically |
| y | Default Synchronize target |
| l | Always display primary folder at the left/top |
| u | Use path even if it doesn't exist |
| i | Ignore the pair |
| g | Go up to first existing parent |
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:
| e | An alias will only be returned if it exactly matches the folder |
| f | If 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