scripting - Best/Easiest/Quickest way to get relative path between two files? -


i'm in midst of refactoring c# code , part of redo references, because we're redoing folder structure entirely. i'd go .csproj or .sln file , modify paths.

however of references have paths like

"../../../../../../thirdparty/somemicrosoftlibrary/bin/debug/somemicrosoftlibrary.dll 

and since we've moved around need find new relative path. absolutely hate trying (figure out how many slashes , periods need put in) since feels hit or miss science.

is there easy way (utility, script, snippet of code) "here's file a, here's file b, relative path of file b in relation file a?"

generate relative path

it's in java, translatable c#.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -