/ Published in: Windows PowerShell
Short Random lines of code mostly from Powershell.com
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#Build SQLCMD line for all files in the directory. #Generate random passwords -join ([Char[]]'abcdefgABCDEFG0123456&%$' | Get-Random -count 20) #Generate a range of letters base on the ascii code (e.g. A: B:...) 65..90 | Foreach-Object { "$([char]$_):" } <#Reading Text Files Fast - returns String#> $a = [System.IO.File]::ReadAllText("$path\wkspace.csv") <#Reading Text Files fast - returns Array Measure-command returns time to execute metadata#> measure-command{[System.IO.File]::ReadAllText("$path\wkspace.csv")}