Raveendran Jazzez wrote: > Hi All, > > I want to access the windows functionalities such as Shut down, Restart, > Log off etc.. > > Please guide to me.. > > Because i tried win32OLE, Watir and few gems.. But still there is no > improvement to access those things. > > Awaiting reply. > > Regards, > P.Raveendran > RailsFactory,Chennai. > http://raveendran.wordpress.com One method is to run the command "shutdown.exe" with parameters: system('shutdown.exe -r -f -t 0') To get a list of parameters, open a console window and enter shutdown.exe /? David http://rubyonwindows.blogspot.com -- Posted via http://www.ruby-forum.com/.