Is there a nice way in the WinAPI to get a path relative to another path? For example:
Have a list of paths relative to:
a\b\c\d
And I’d like to change them all to paths relative to
a\b\c
Is there a neat way to do this or should I get path parsing?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as i know there is no such functionality in the windows API, but there is e.g. an article on CodeGuru that provides that functionality.
edit:
I stand corrected, there is PathRelativePathTo() in the shell api as mentioned in this answer.