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

PowerTip: Use PowerShell to Create New File

$
0
0

Summary: Create a new file with Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to create a new text file that will be empty until I add content?

Hey, Scripting Guy! Answer Use the New-Item cmdlet and specify a path, name, and type, for example:

New-Item c:\fso\AnEmptyFile.txt -ItemType file


Viewing all articles
Browse latest Browse all 3333

Trending Articles



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