|Subject:||PathAddExtension - A bit too "smart" for its own good. What to replace it with ?|
|Posted by:||R.Wieser (addre…@not.available)|
|Date:||Sat, 9 Mar 2019|
I have a situation in which I need to append an extension to a base
filename, for which the PathAddExtension seems to be intended.
However, the problem with that is that the base filename can contain one or
more dots, and the above functions assumes, wrongly in my case, that such a
dot means the start of an extension - and thus doesn't do a thing. :-(
So the question is: Is there a function with which I can append an extension
without it trying to be clever.
I don't think so (did skim the shlwapi functions), but not asking at all
might mean I could deprive myself of a positive answer. :-)
(I wish I could use PathAppend, but that one insists on inserting a
backslash only ...)