Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Add Content to File

$
0
0

Summary: Learn how to use Windows PowerShell to add content to a file.

Hey, Scripting Guy! Question How can I use Windows PowerShell to add content to a file?

Hey, Scripting Guy! Answer Use the Add-Content cmdlet, and specify the path to the file and the value of the content, for example:

Add-Content C:\fso\AnEmptyFile.txt -Value "This is content"


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>