How to translate paths with environment variables (e.g.% temp%)

I am looking for a winapi function to extend paths with environment variables. I tried GetFullPathName , but the result is strange: "%appdata%\something" becomes "C:\<path to directory of exe>\%appdata%\something" .

How to do it right?

+4
source share
2 answers

Because I need it with C # /. NET: Environment.ExpandEnvironmentVariables Method

I hope this helps someone.

+3
source

All Articles