Archive for the Website Category

Hello world!

| November 15th, 2016

PS C:\>notepad.exe .\helloWorld.ps1


#Hello World - First Post to billingham.ca/powershell
$OUTPUT = "text" | Out-File .\greeting.csv
$OUTPUT = "Hello, World!" | Out-File .\greeting.csv -Append

$greeting = (import-csv .\greeting.csv).text

foreach ($item in $greeting) {

     if ($item -ne $null) {
          write-host $item
     }
}

PS C:\>.\helloWorld.ps1

Hello, World!

PS C:\> _