Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows 8 Notification Service notification from command prompt

Can you send a windows 8 Windows Notification Service (WNS) via command prompt?

Example: notification when sass stylesheet compiles

like image 542
Kyle King Avatar asked Dec 14 '12 19:12

Kyle King


2 Answers

What you want (well, what I wanted, so I expect you do, too) is toaster.

A wee Win8 console notifications app. Post toast notifications from the console, making it easy to integrate into existing batch scripts etc.

Just download the master.zip file, there's a compiled binary called toast.exe.

From command prompt or batch file:

toast -t "Title text" -m "Message text goes here" -p c:\users\me\picture.png
like image 174
bjimba Avatar answered Oct 01 '22 20:10

bjimba


You can send Windows 8 Notifications from any desktop application.

It should be the same as this example except starting with a command prompt project.

See the msdn quickstart here.

like image 43
N_A Avatar answered Oct 01 '22 20:10

N_A