Powershell : File generation

 

1..5 | % { New-Item -Path c:\fso -Name "$_.txt" -Value (Get-Date).toString() -ItemType file}

Borrowed from : here

Leave a Reply

Your email address will not be published. Required fields are marked *