PDA

View Full Version : Need shutdown/restart/logoff option in your AMS project?


element78
09-04-2003, 03:36 PM
I found a tiny little program that was made for XP for that very purpose, its command line utility that lets you do exactly that. /ubbthreads/images/icons/smile.gif

You can make it do the following:
-Log Off the current user
-Shutdown (Turn Off) the computer
-Restart the computer
-Hibernate the computer (note that hibernation has to be -enabled!)
-Put the computer into Stand By (Sleep)

Heres the link. (http://www.budja.com/shutdown/)

I know i've seen a few people asking about this, and it seems to be a solid way of going about it. /ubbthreads/images/icons/smile.gif

Enjoy
Adam

mx101
09-04-2003, 08:56 PM
hi...
you dont need this if you want shutdown use the action file.execute and put this:
%SysDir%\shutdown.exe -s -t 00

for reboot use this:
%SysDir%\shutdown.exe -r -t 00


bye....

cdemallie
09-05-2003, 08:56 AM
If you want something that works with all OSs (98 and higher), you can also use this free utility called WinShut. Available here http://www.obock.de/html/download1.html

It, too, has a logoff option.

Craig

element78
09-05-2003, 12:35 PM
Well hmph, oh well. I found it and thought it may come in useful /ubbthreads/images/icons/smile.gif

Good to know theres an easy way of doing it without an external program.

John-oh
09-05-2003, 02:46 PM
Hey element,

Keep 'em coming. Enthusiasm is all !

The success of a thread is often in the replies.

Keep up the good work.

Cheers

J

element78
09-07-2003, 12:46 AM
/ubbthreads/images/icons/smile.gif

TJ_Tigger
09-07-2003, 08:32 AM
oh no, not the dancing banana!