I'm trying to loop on files in a specific folder and delete double quotes in them
anyone could explain this ,I did this :
Get-ChildItem "c:\temp\test\" -filter SplitCSV* |
ForEach-Object {
(Get-Content $_) -replace '(?m)"([^,]*?)"(?=,|$)', '$1' | Set-Content $_ }
With this error message :
Get-Content : Impossible de trouver le chemin d'accès «
C:\Users\cptspinstalldev\SplitCSV_03-08-2020_9.csv», car il n'existe pas.
So I moved my files in C:\Users\cptspinstalldev\ and it worked but why did my get-childitems didn't look in the right folder which is c:\temp\test\
Looks like I was not in the right folder so dumb