SORU
12 Aralık 2008, Cuma


&Quot nedir;@" sembol powershell'de?

@ Sembolü yeniden diziler için powershell'de kullanılan gördüm. Tam olarak @ simgesi ve burada bu konuda daha fazla bilgi alabilir miyim göstermek nedir?

CEVAP
22 ŞUBAT 2009, Pazar


PowerShell V2, @ de SPLAT operatörü.

PS> # First use it to create a hashtable of parameters:
PS> $params = @{path = "c:\temp"; Recurse= $true}
PS> # Then use it to SPLAT the parameters - which is to say to expand a hash table 
PS> # into a set of command line parameters.
PS> dir @params
PS> # That was the equivalent of:
PS> dir -Path c:\temp -Recurse:$true

Deney! Tadını çıkarın! Meşgul!

Jeffrey Snover [MİCROSOFT] Windows Yönetim Ortağı Mimar

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • iBand IguJoo

    iBand IguJoo

    25 AĞUSTOS 2006
  • Kevin Bruckert

    Kevin Brucke

    30 Aralık 2006
  • Paste Magazine

    Paste Magazi

    28 AĞUSTOS 2008

İLGİLİ SORU / CEVAPLAR