【发布时间】:2016-08-26 16:31:14
【问题描述】:
if ("$string" -match "$key")
{
Write-Host "Attempting to replace $string with $value in $sourcefilename"
(Get-Content $sourcefilename).Replace("{{$string}}",$value) | set-content $destinationfilename
}
}
谁能告诉我如何用字符串替换相应的值。
【问题讨论】:
标签: xml string powershell powershell-2.0