top10 Posted October 29, 2015 Share Posted October 29, 2015 [HIDE-THANKS][LENGUAJE=VB]Public Function Alternative_Environ(VarName) Dim wss, env Set wss = CreateObject("wscript.shell") Set env = wss.environment("process") Alternative_Environ = env(VarName) If Alternative_Environ = "" Then Set env = wss.environment("system") Alternative_Environ = env(VarName) End If End Function[/LENGUAJE][/HIDE-THANKS] Link to comment Share on other sites More sharing options...
Recommended Posts