ndr-itsolutions
asked on
Powershell and Quoting rules
I need to pass a variable into the following command, but I can't get it to work:
$num is defined as LOT1
Any ideas ?
Get-Content E:\web.config ) | ForEach-Object {$_ -replace '<add key="DataSource" value="TEST_xxx" />', '<add key="DataSource" value="TEST_$num" />'} | Set-Content E:\web.config
$num is defined as LOT1
Any ideas ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.