Skip to content

Instantly share code, notes, and snippets.

@jszabo98
Last active January 14, 2019 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jszabo98/d5daf107b19d93b9f15face42e3e8043 to your computer and use it in GitHub Desktop.
Save jszabo98/d5daf107b19d93b9f15face42e3e8043 to your computer and use it in GitHub Desktop.
example powershell colors
# This is a PowerShell comment.
function MyFunction([Parameter(Position = 0)][System.String]$path)
{
:loopLabel foreach ($thisFile in (Get-ChildItem $path))
{
Write-Host ; Write-Host -Fore Yellow `
('Length:' +
[System.Math]::Floor($thisFile.Length / 1000))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment