@echo off
for /f "tokens=1-14 delims= " %%A in ('systeminfo ^| find "System Up Time"') do set /a secs1=86400*%%D+3600*%%F+60*%%H+%%J
rem nothing here
for /f "tokens=1-14 delims= " %%A in ('systeminfo ^| find "System Up Time"') do set /a secs2=86400*%%D+3600*%%F+60*%%H+%%J
set /a secs3=secs2-secs1
echo %secs3% seconds taken.
pause
#Build SQLCMD line for all files in the directory.
dir tables|foreach{$a = $_.Name;"r: Tables\$a"}>201106_Deploy.sql
#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")}