Powershell Tip #115: Create a bunch of files By powershellgu | August 26, 2016 0 Comment Tip: You can create a bunch of files, for example for test purposes. PowerShell for ($i = 1; $i -le 100; $i++) { [void][System.IO.File]::Create("C:\Demo\file$i.txt") } 1234 for ($i = 1; $i -le 100; $i++){ [void][System.IO.File]::Create("C:\Demo\file$i.txt")} Overload definitions Creation of 100 files in the directory C:\Demo