【发布时间】:2016-01-28 11:33:10
【问题描述】:
我在这里挣扎。
使用Powershell和GUI,如何自动刷新表单上的数据?
以下面的脚本为例,如何用我的电脑执行的进程数自动更新标签?
Add-Type -AssemblyName System.Windows.Forms
$Form = New-Object system.Windows.Forms.Form
$Form.Text = "Sample Form"
$Label = New-Object System.Windows.Forms.Label
$Label.Text = "Number of process executed on my computer"
$Label.AutoSize = $True
$Form.Controls.Add($Label)
$Form.ShowDialog()
【问题讨论】:
标签: powershell powershell-2.0 powershell-3.0 powershell-4.0 powershell-ise