|
Don't know if it's useful for you, but you could use the API PathRenameExtension , which is in shlwapi.dll, this API replace any extension with any extension you want:
PathRenameExtension ("file.ext", ".bak");
Hope it works for you, just #include <shlwapi.h>
This only works in windows, off course...
|