Greetings BrutalSpoon,
Well you could also use Messenger's COM control and do it that way (via Windows Scripting
Host or other method), however, a batch file would work fine too.
Just run Messenger's executable at the appropriate time with the right parameter. In your
case you'll want /invisible or /signoutal (see
http://messengergeek.spaces.live.com...DA1!2651.entry for a list).
And actually you don't really need to do a batch, you can just run Messenger directly - so
your task looks like this:
http://messenger.jonathankay.com/screens/basictask.png
--
Jonathan Kay
Microsoft MVP - Windows Live Messenger
MSN Messenger/Windows Messenger
MessengerGeek Blog:
http://www.messengergeek.com
Messenger Resources:
http://messenger.jonathankay.com
(c) 2009 Jonathan Kay - If redistributing, you must include this signature or citation
--
"BrutalSpoon" <> wrote in message
news:AD32336A-A2E3-4530-961D-...
> I'm trying to find a way to automatically sign out or appear offline at a
> certain time. I'm under the impression that the best way to do it is to
> create a .bat file and run it as a scheduled task using Window's Scheduled
> Tasks utility.
>
> Anybody know what code I would need to use to do this? Or is there an
> easier/better solution?