Michael Asgian
asked on
Powershell: how to append to a CSV instead of out to a new CSV
I need a bit of help. Total beginner with Powershell.
I have a Powershell script that ends up with
How can I have those results pasted at the end of an existing CSV instead of writing a new file?
thanks in advance!
I have a Powershell script that ends up with
out-file "C:\test\result.csv"
How can I have those results pasted at the end of an existing CSV instead of writing a new file?
thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes, you could do that as well. The export-csv has so much more options in terms of formatting that Out-file simply does not support. And, seeing that you were intending to work with CSVs, I thought it best if you were introduced to export-csv.
ASKER
Worked like a charm! Thank you all!
You're welcome. Thank you for the grade. Good luck!
Out-File has -Append, too.