Don't know if it helps:

system('logoff');

./alex
--
.w( the_mindstorm )p.


On 6/11/06, Romuald du Song <rdusong / gmail.com> wrote:
> Hye,
>
> I'm looking for a way to log off a user in windows XP through a ruby script.
> The script is a windows service running with ruby win32/service package.
>
> I was not able to find any win32 module handling this functionnality,
> so perhaps I should rely on a complex method, but first
>  I ask this coooool list for some cooool advice !
>
> Romuald du Song
>
>