1. Append a string to the end of a file
Add-Content -Path .\theFile -Value "the string to be appended"
2. Append file_a to the end of file_b
Get-Content -Path .\file_a | Add-Content -Path .\file_b
3. Create a new file with a sting as the content
"the string to be put into the file" | Out-File -FilePath .\theFile
Wednesday, January 29, 2020
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment