'
' Legge una variabile ambiente e ne espande il contenuto
' Reda Environment Variable and expand it
'
Function ExpandEnvironment(sVariableName As String) As String
Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
ExpandEnvironment = WshShell.ExpandEnvironmentStrings(sVariableName)
Set WshShell = Nothing
End Function
lunedì 21 marzo 2016
Espande il contenuto di una variabile ambiente
Questa funzione torna utile per leggere il contenuto di variabili di ambiente come %TEMP% o %PATH%
Usefull for read and expand Environmen Variabiles like %TEMP% or %PATH%
Iscriviti a:
Commenti sul post (Atom)
Nessun commento:
Posta un commento