Map a relative path to absolute?
Posted on 2008-11-10
Hello, I'm familiar with web applications and Server.MapPath in asp.net. I'm looking for something similar to use in a console applicaton. It would allow me to transform a relative path e.g. "..\..\somepath\", to an absolute path "c:\my apps\deploy\somepath". It would start the process in the directory the exe is currently located in.
for example if the exe is located in
and I pass this argument "..\app2\"
I'd end up with