1.

Solve : Is possible to send notification to Action Center by batch file??

Answer»

Hi!

I need to notify some actions of my batch files scheduled in time - notify about success/failure.
It's easy to notify by window - but it remains on screen until is closed.

Is possible to send notification to action center from BAT (batch) file?

Thank you for all suggestions.
MiroAre you willing to install an app, or must it be entirely Windows native? I personally use Growl for this; it can even show notifications from other computers on the LAN, using Windows, MacOS, or Linux, provided they have a Growl sender installed. Today, the official site seems to be down, but there is a Github branch

https://github.com/MartinSGill/growl-for-windows-branched

Official site:

http://www.growlforwindows.com/

Another similar alternative is Snarl

https://snarl.fullphat.net/



Or you can create notifications with this app

http://www.l2adv.com/_32BitProgs/L2ToastNotification.zip

Hi!

I was searching net and found really nice not require any program, here's:

Code: [Select]call :notif "{The title}" "{The message}"

:notif
::SYNTAXE : call :notif "Titre" "Message"

set type=Information
set "$Titre=%~1"
Set "$Message=%~2"

::You can replace the $ICON value by Information, error, warning and none
Set "$Icon=Information"
for /f "delims=" %%a in ('powershell -c "[reflection.assembly]::loadwithpartialname('System.Windows.Forms');[reflection.assembly]::loadwithpartialname('System.Drawing');$notify = new-object system.windows.forms.notifyicon;$notify.icon = [System.Drawing.SystemIcons]::%$Icon%;$notify.visible = $true;$notify.showballoontip(10,'%$Titre%','%$Message%',[system.windows.forms.tooltipicon]::None)"') do (set $=)

goto:eof
It SENDS notification to Action Center.

Also command line allows to notify by window:

msg {username} "{message}"

Thank you for all. Hope this can help also others.
Miro



Discussion

No Comment Found