File is released to public domain; uses GPL'd AutoIt3
BCAST.AU3 gives you a simple method to display a web page upon login. It uses the GPL-licensed AutoIt3 by Jonathan Bennett, available at http://www.autoitscript.com to find and run Internet Explorer and display an html file we have written.
We use BCAST to announce down-time or special events to our users. We just place a file in a designated shared directory (could be everyone's Z:\PUBLIC, for example) and let BCAST find it; it alerts the user that there's an important announcement posted and allows them to choose to view it, or skip it and remain blissfully ignorant. You can easily modify the script to force the display of your announcement by commenting out the line that ends with "Do you want to view it?".
With the AUT2EXE tool that comes with the package you can and should compile BCAST into an executable in order for it to run everywhere.
We prefer this method over email and web site postings, but only when we have overnight advanced warning of something important that everyone needs to know, like a server failure or other emergency. It's necessary to compose and post the announcement before everyone logs in, obviously - but with this, all it takes is prepping a web page and dropping it in a shared folder, no need to add or adjust Zen objects. Zen ALWAYS runs BCAST, but if there's no announcement, it just drops out invisibly.
This script is in the public domain. No warranty is expressed or implied. Use at your own risk.
==== ; bcast.au3 ; chris ihm - ihmc(at)dowling.edu ; If not exist announcements page, drop out ; else ask if you want to display it ; if yes, run ie ; first get and parse ie path $iepath=RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE", "PATH") ; registry path always has ";" appended, stringsplit using ";" delimiter just drops it $array=stringsplit($iepath,";") ; if any path errors try removing semicolon here to see paths ;msgbox(0, "Path to IE", "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE\path is " & @CRLF & $array & @CRLF & @CRLF & "So we are executing: " & @CRLF & $array & "\iexplore.exe") ; change drive and path here to match your environment - if you keep bcast3.exe and your announcement in the same ; directory you need not utilize search drives If FileExists("q:\announce\announce.html") Then $answer = MsgBox(68,"Announcement", "An important announcement has been posted." & @CRLF & "Do you want to view it?") If $answer = 7 Then exit Run($array & "\iexplore.exe q:\announce\announce.html") EndIf ====