add-content to variable does not work.
add-content variable not work.
here's get
c:...\windowspowershell> set-content variable:xyzzy 'newtext'
c:...\windowspowershell> $xyzzy
newtext
c:...\windowspowershell> add-content variable:xyzzy 'additionaltext'
add-content : cannot call method. content seek method not
supported provider.
c:...\windowspowershell> $xyzzy
newtext
should able use add-content modify value of variable?
$xyzzy += 'addtext'
if found post helpful, please give "helpful" vote. if answered question, remember mark "answer".
rich prescott | mcitp, mcts, mcp
blog | twitter: @arposh | powershell client system administration tool
Windows Server > Windows PowerShell
Comments
Post a Comment