I want to understand what's the difference between those functions, and which of them should I use for work with paths?
For example: I want "C:\Temp" + "..\Folder" = "C:\Folder"
Thanks
PathCanonicalize() might be worth mentioning, in case the strings are already concatenated.
You have to use PathCombine for this.
Concatenates two strings that represent properly formed paths into one path; also concatenates any relative path elements.
PathAppend specifically rules out relative path qualifiers, per the MSN docs:
The path supplied in pszPath cannot begin with "..\" or ".\" to produce a relative path string.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With