Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

Problem with GC and variable

$
0
0

When I use the follow command :

gc D:\Outgoing\$($A + "-data.csv") -replace ('"',' ') | Out-File D:\Outgoing\$($A+ "-data.csv") -Force

I get the following error:

Get-Content : A parameter cannot be found that matches parameter name 'replace'.

Any ideas how I can fix this ?

 

 


Viewing all articles
Browse latest Browse all 8411

Trending Articles