PowerShell弹出WIN10通知

来源:互联网 发布:开淘宝店空挂商品 编辑:程序博客网 时间:2024/06/04 18:16
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")$objNotifyIcon = New-Object System.Windows.Forms.NotifyIcon $objNotifyIcon.Icon = "E:\git_project\yuanliwei.github.io\favicon.ico"$objNotifyIcon.BalloonTipIcon = "Error" $objNotifyIcon.BalloonTipText = "A file needed to complete the operation could not be found." $objNotifyIcon.BalloonTipTitle = "File Not Found"$objNotifyIcon.Visible = $True $objNotifyIcon.ShowBalloonTip(10000)