﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3964	Allow EnvGet to support whole strings like _WinAPI_ExpandEnvironmentStrings	lwc		"While [https://www.autoitscript.com/autoit3/docs/libfunctions/_WinAPI_ExpandEnvironmentStrings.htm _WinAPI_ExpandEnvironmentStrings] supports whole strings (but requires an include), [https://www.autoitscript.com/autoit3/docs/functions/EnvGet.htm EnvGet] only allows to input a specific environment variable and even then without percents.

I don't presume to retroactively change that, but what about accepting a secondary optional parameter called '''$full'''? That is, `Func EnvGet($envvariable, $full=False)` whereas `$full` is '''optional''' and by default '''False'''.


But if `$full` is `True` then just do something like (only internally):

{{{
If $Full Then
  return Execute(""'"" & StringRegExpReplace($envvariable, ""%(\w+)%"",  ""' & EnvGet('$1') & '"" ) & ""'"")
EndIf
}}}

This will allow to support commands like `ConsoleWrite(EnvGet(""My temp variables are %temp% and %tmp%"", true))`."	Feature Request	closed		AutoIt		None	Works For Me	environment	
