#NoEnv ppath = blabla bla asd `%TEMP`%....`%SYSTEMROOT`%.. MsgBox % ExpandEnvVars(ppath) return ExpandEnvVars(ppath) { VarSetCapacity(dest, 2000) DllCall("ExpandEnvironmentStrings", "str", ppath, "str", dest, int, 1999, "Cdecl int") return dest }
-------------------------------------------------------
another example for those that still ask why this:
Open cmd.exe
type:
set w=c:\windows set s= \system32 set n= \notepad.exe %w%%s%%n%
This function enables you to expand env variables that you receive in the string, by reading some config, ini, or something.....