0

My script get a String value from another process like this :

PS C:\Users\Roger> echo $path
${env:LOCALAPPDATA}\Google

But

PS C:\Users\Roger> echo "${env:LOCALAPPDATA}"
C:\Users\Roger\AppData\Local\Google

Is there a Powershell function I can apply to my variable path to get the environment variable correctly ?

François I
  • 31
  • 1
  • 2
  • 1
    How do you assign the value to to the var `$path` ? If this way `$Path = '${env:LOCALAPPDATA}\Google'` change the single to double quotes. –  Jul 20 '18 at 15:34
  • I received the value encoded and when it was decoded as a String it did not recognized the environment variable – François I Jul 20 '18 at 15:43

0 Answers0