How to translate paths with environment variables (Eg. %temp%)
I am searching for a winapi function to expand paths with environment variables.
I have tried GetFullPathName but the result is weird: "%appdata%\some开发者_运维问答thing" 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.
加载中,请稍侯......
精彩评论