Open MichaelJLittle opened 1 month ago
New-Item -Path . -Name "testfile1.txt" -ItemType "file" -Value "This is a text string."
can avoid listing -path if you are already in the directory you need to be in
(1..10) | ForEach-Object {New-item “MyNewFile$_.txt”}
New-Item -Path . -Name "testfile1.txt" -ItemType "file" -Value "This is a text string."