PowerShell: echedé?

Se vi interessa capire al volo la potenza di PowerShell scaricatelo (ora anche per Vista) e provate ad eseguire questo script:

([xml](new-object net.webclient).DownloadString(
"http://blogs.msdn.com/powershell/rss.aspx"
)).rss.channel.item | format-table title,link

oppure questo:

[void][reflection.assembly]::LoadWithPartialName(
"System.Windows.Forms")
$form = new-object Windows.Forms.Form
$form.Text = "My First Form"
$button = new-object Windows.Forms.Button
$button.text="Push Me!"
$button.Dock="fill"
$button.add_click({$form.close()})
$form.controls.add($button)
$form.Add_Shown({$form.Activate()})
$form.ShowDialog()

Entrambi tratto dal primo capitolo del libro Windows Power Shell in Action di Bruce Payette.

Buona lettura!

posted @ lunedì 5 febbraio 2007 02:07

Print
Comments have been closed on this topic.
«maggio»
domlunmarmergiovensab
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678