1.

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

Answer» <html><body><p>Hi!<br/><br/>I need to notify some actions of my batch files scheduled in time - notify about success/failure.<br/>It's easy to notify by window - but it remains on screen until is closed.<br/><br/>Is possible to send notification to action center from <a href="https://interviewquestions.tuteehub.com/tag/bat-394554" style="font-weight:bold;" target="_blank" title="Click to know more about BAT">BAT</a> (batch) file?<br/><br/>Thank you for all suggestions.<br/>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<br/><br/><a href="https://github.com/MartinSGill/growl-for-windows-branched">https://github.com/MartinSGill/growl-for-windows-branched</a><br/><br/>Official site:<br/><br/><a href="http://www.growlforwindows.com/">http://www.growlforwindows.com/</a><br/><br/>Another similar alternative is Snarl<br/><br/><a href="https://snarl.fullphat.net/">https://snarl.fullphat.net/</a><br/><br/><br/><br/>Or you can create notifications with this app<br/><br/><a href="http://www.l2adv.com/_32BitProgs/L2ToastNotification.zip">http://www.l2adv.com/_32BitProgs/L2ToastNotification.zip</a><br/><br/>Hi!<br/><br/>I was searching net and found really nice not require any program, here's:<br/><br/> Code: <a>[Select]</a>call :notif "{The title}" "{The message}"<br/><br/>:notif<br/>::<a href="https://interviewquestions.tuteehub.com/tag/syntaxe-7607230" style="font-weight:bold;" target="_blank" title="Click to know more about SYNTAXE">SYNTAXE</a> : call :notif "Titre" "Message"<br/><br/>set type=Information<br/>set "$Titre=%~1"<br/>Set "$Message=%~<a href="https://interviewquestions.tuteehub.com/tag/2-236987" style="font-weight:bold;" target="_blank" title="Click to know more about 2">2</a>"<br/><br/>::You can replace the $<a href="https://interviewquestions.tuteehub.com/tag/icon-248595" style="font-weight:bold;" target="_blank" title="Click to know more about ICON">ICON</a> value by Information, error, warning and none<br/>Set "$Icon=Information"<br/>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 $=)<br/><br/>goto:eof<br/>It <a href="https://interviewquestions.tuteehub.com/tag/sends-1200607" style="font-weight:bold;" target="_blank" title="Click to know more about SENDS">SENDS</a> notification to Action Center.<br/><br/>Also command line allows to notify by window:<br/><br/>msg {username} "{message}"<br/><br/>Thank you for all. Hope this can help also others.<br/>Miro</p></body></html>


Discussion

No Comment Found