12 2012 档案
摘要:Backtick allows you to word-wrap PowerShell commands 1. # Backtick ` PowerShell word-wrap Get-Service * |Sort-Object ServiceType ` | Format-Table name, status, ` S...
阅读全文
摘要:$s = "VMS"; $OFS = ""; [string] [char[]] ([int[]] [char[]] $s | foreach{$_+1}) Output: WNT $OFS (Output Field Separator): When PowerShell converts arrays to strings, it takes each array el...
阅读全文
摘要:DICTIONARIES AND HASHTABLES Creating and inspecting hashtables $user = @{ FirstName = "John"; LastName = "Smith"; PhoneNumber = "555-1212" } Enumerating hashtable $h = @{a=1; b=2; c=3} forea...
阅读全文

浙公网安备 33010602011771号