call notify balloon message in windows 7 from cmd?

前端 未结 4 1455
南笙
南笙 2020-12-31 10:23

I need to create a notification balloon message in Windows 7 from the Command prompt with custom text. I have searched Google and found shell32.

4条回答
  •  天命终不由人
    2020-12-31 11:23

    You may use NirCmd by Nir Sofer like this:

    NirCmd.exe trayballoon [Title] [Balloon Text] [Icon File] [Timeout] 
    

    This does not seem to work for Windows 10. There you may use Toast.exe, which writes to the message area instead.

    Toast.exe  -t "Title text" -m "Message"  -p NotificationImage.png
    

    You have to turn on notifications for Toast.exe in the Windows 10 settings dialog under Settings > Notifications & Actions

提交回复
热议问题