Last active
January 14, 2019 19:59
-
-
Save jszabo98/d5daf107b19d93b9f15face42e3e8043 to your computer and use it in GitHub Desktop.
example powershell colors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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