View Single Post
Old 09-23-2006   #1 (permalink)
=?Utf-8?B?Um9tYW4gS3V6bWlu?=


 
 

Issue: getting/setting variable content using Get/Set-Content

I was playing with getting/setting variable content using Get/Set-Content and
variable provider and found this:

$x = 'Hi'
gc variable:\x
Hi

sc variable:\x -Value 'Hello'
gc variable:\x
Hello

sc variable:\x -Value (gc variable:\x)
gc variable:\x
Get-Content : The member "PSPath" is already present.
At line:1 char:3
+ gc <<<< variable:\x

What happens?

--
Thanks,
Roman
My System SpecsSystem Spec