'================================================================== 'synchronize_all.vbs '© Tom C. Koch - tkoch@mvps.org - revised 07 Oct 2004 'http://www.insideoe.com 'This script launches Outlook Express and then ' synchronizes all mail and news accounts ' 'If the script does not work properly, you probably need to 'adjust the sleep values a bit higher. ' 'To use this script, you must configure OE not to 'check for new messages when starting. 'To do that, click Tools, then click Options, 'then clear the checkbox for 'Send and receive messages at startup' 'otherwise the script will not work. '================================================================== Set WshShell = WScript.CreateObject("WScript.Shell") Dim taskID taskID = "* - Outlook Express" WshShell.Run "c:\progra~1\outloo~1\msimn.exe", 9 WScript.Sleep 800 WshShell.AppActivate taskID WScript.Sleep 1000 WshShell.SendKeys "%TZ" 'sends Alt-T-Z for Tools|Synchronize All WScript.Sleep 1000 WshShell.SendKeys "%H" 'sends Alt-H to Hide spooler window 'WshShell.AppActivate taskID Set WSHShell = Nothing