Here’s How You Can Display Windows 8 Toast Notifications From Your Own Scripts
If you are looking to automate some complex tasks, scripts and batch files are useful for this purpose. However, they don’t really do a good job when it comes to letting you know of their progress. Normally, users tend to use Alt+Tab in order to go back to the command prompt to see what’s up.
So is there an alternative? Well, in comes a small console tool called ToastNotification that offers an alternative on Windows 8. It will allow you to display toast notifications from your very own scripts.
The program in question is a small download and comes with a .exe, also an image for customization purposes, and lastly a .txt file for instructions.
Using toast notifications is as simple as passing it three arguments, a title and line 1-2:
L2ToastNotification “Pay attention!” “Free space running short on” “Drive D: !!!”
There is an issue with validation as the program crashes if you fail to pass it three arguments. That isn’t an issue while using an empty string ” ” works OK. Keep in mind that each argument can only be of 27 characters.
Additionally, the program shows a 90×90 image ToastNotification.png in the alert. The image features the logo of the developers but you do have the option to remove it and leave a blank space.
You can also replace it with an image of your own.
The software works fine, however, if you are looking for something that works beyond Windows 8 then try this:
msg UserName /Time:7 Alert Message Goes Here!
Named users is displayed the massage after this and goes away after a set period of time. You can also ditch /Time switch fully and wait for a user acknowledgment.
Sikander is a gamer at heart and loves to write about the latest technology trends. He does it all in the name of Techfrag!