I am searching for a winapi function to expand paths with environment variables.
I have tried GetFullPathName
but the result is weird: "%appdata%\something"
becomes "C:\<path to directory of exe>\%appdata%\something"
.
How to do this correctly?
Try ExpandEnvironmentStrings
.
Cause I needed it with C#/.NET: Environment.ExpandEnvironmentVariables Method
I hope it'll help somebody.
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