GetRelativePath

Get relative path of one to another
Pass two path strings to this function and it will return the 1st path relative to the second.
Always pass folder strings NEVER file strings
If the folder is a drive like c:\ you have to pass it without a backslash at end.

CodeFunctionName What is this?

Public

Tested

Imported

Access is limited.

Login here using your Linkedin account. to see or download code.

No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Mydevlib.com

Linkedin Login

LINKINGFOLDER, LINKEDFOLDER

get_relative_path "C:\My Documents", "C:\Windows\System"
returns ../../My Documents/

Views 4,688

Downloads 1,460

CodeID
DB ID

ANmarAmdeen
710
Attachments
Revisions

v2.0

Thursday
July
19
2018