开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜