Closed QbProg closed 6 years ago
Hi, There is no support for that in AlphaFS. Perhaps this link can help you out: Combine and resolve relative paths in C#
Actually I'd like to do something like this: https://stackoverflow.com/questions/13266756/absolute-to-relative-path
could it be a nice feature addon?
Hello, I could not find a way to obtain the relative path of a full path. For instance,
Path1
: C:\Windows\Test.txtPath2
: C:\Windows\ something likePath3
= GetRelativePath(Path1,Path2)Path3
= ".\Test.txt"or
Path1
= C:\Windows\System\Test.txtPath2
= C:\Windows\Other\Directory\Path3
= ..\..\System\Test.txtAny ideas?