How to put shutdown and hybernate buttons in buttonbar?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
JP
Senior Member
Senior Member
Posts: 273
Joined: 2003-02-13, 09:15 UTC

How to put shutdown and hybernate buttons in buttonbar?

Post by *JP »

I'd like to put buttons to shutdown and to hybernate in buttonbar. Any idea?
User avatar
Nigurrath
Senior Member
Senior Member
Posts: 225
Joined: 2003-02-05, 12:41 UTC

Post by *Nigurrath »

You can try to use this program and create a button for it

http://www.ykwong.com/winkill.html
always latest 32b TC on a WIN10 64b
TucknDar
Senior Member
Senior Member
Posts: 227
Joined: 2003-02-07, 09:44 UTC
Location: Oslo
Contact:

Post by *TucknDar »

or try Wizmo. It does a ton of other useful things too.
license #76904
User avatar
corny
Junior Member
Junior Member
Posts: 96
Joined: 2003-02-07, 10:06 UTC

Post by *corny »

Another one to try: PowerOff, for both GUI and commandline.

Yet another one: PsShutdown, which isn't able to hibernate.

A commercial alternative is TrueLaunchBar, a replacement for the QuickLaunch bar, which has a plugin named Turn Off Computer.
Regards,
Cornelis
itsme
Junior Member
Junior Member
Posts: 3
Joined: 2003-02-14, 19:26 UTC

Post by *itsme »

Some days ago I downloaded Power Off and put a button for it in the button bar.
There is an option in this programm which allows you to power off etc. the computer "after a process stops" and then you can choose between different processes. I'd like to shutdown my pc after a dowload with TC has been finished. Is there a process name for this which I can add or perhaps there might be another way to shutdown the computer automatically after the download is over?
User avatar
HerbieH
Member
Member
Posts: 145
Joined: 2003-02-11, 10:04 UTC

Post by *HerbieH »

If you use WinXP, there is a much simpler way. :wink: Use Windows own 'shutdown.exe' command.

Use the following strings in of the buttons:

C:\windows\System32\shutdown.exe -s -t 00'
C:\windows\System32\shutdown.exe -r -t 00'

-The first for shutdown, the second for hibernate.

For further info, see:
http://www.budja.com/shutdown/readme.html
----------

PS: If you use WinME (possibly Win98) you can use the following strings for shutdown:

C:\WINDOWS\RUNDLL32.EXE SHELL32.DLL,SHExitWindowsEx 1

for Reboot:
C:\WINDOWS\RUNDLL32.EXE SHELL32.DLL,SHExitWindowsEx 2
HerbieH*
-Keep on makin' music!
User avatar
HerbieH
Member
Member
Posts: 145
Joined: 2003-02-11, 10:04 UTC

Post by *HerbieH »

I just found out, that 'shutdown.exe' is NOT a standard WinXP file. :oops:
I was fooled by the location: 'system32'
Anyway, it's freeware and you can get it here:
http://www.budja.com/shutdown/shutdown.exe
HerbieH*
-Keep on makin' music!
Special Agent
Junior Member
Junior Member
Posts: 7
Joined: 2003-02-17, 06:01 UTC

Post by *Special Agent »

> I just found out, that 'shutdown.exe' is NOT a standard WinXP file.
> I was fooled by the location: 'system32'

It came stock with my version of XP (pro)... shutdown.exe 17k - 8-23-2001

I use

%windir%\System32\shutdown.exe -s -t 00
as a shortcut target

to shut down and

%windir%\System32\shutdown.exe -r -t 00

to restart...

-=SA=-
JP
Senior Member
Senior Member
Posts: 273
Joined: 2003-02-13, 09:15 UTC

Post by *JP »

It came stock with my version of XP (pro)... shutdown.exe 17k - 8-23-2001
Yes, but Windows version and the other one you can download from the indicated site are different. With the last one you can also hibernate and stand by; with windows standard this is not possible (and it's very strange...)
User avatar
HerbieH
Member
Member
Posts: 145
Joined: 2003-02-11, 10:04 UTC

Post by *HerbieH »

OK! The conclusion must be, that 2 versions of 'shutdown.exe' for WinXP exists:
1) A build-in with command-line options for reboot & shutdown, and possibly delay.
2) A downloadable (see above) with more options for suspend/hibernate.
I am, at this moment, not running WinXP, så I cannot personally verify this.

PS: next time, I post something on the TC-board, I will make a better 'research' on the topic, ...and perhaps make myself worthy of a 'member'-status. :D
HerbieH*
-Keep on makin' music!
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]As for me I do prefer LoSOFT Tools (Down&APM), I run them from Winconsole.[/face]
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 07-03-2003 12:34:35 +0000 Special Agent wrote:

SA> I use

SA> %windir%\System32\shutdown.exe -s -t 00
SA> as a shortcut target


System32 is in the PATH by default, so you just can run

shutdown -s -t 00

for example from Commander command line...[/face]
TucknDar
Senior Member
Senior Member
Posts: 227
Joined: 2003-02-07, 09:44 UTC
Location: Oslo
Contact:

Post by *TucknDar »

Black Dog wrote:[face=courier]As for me I do prefer LoSOFT Tools (Down&APM), [/face]
cool. I love those little commandline utilities :)
Black Dog wrote:[face=courier]I run them from Winconsole.[/face]
but I'd never pay for anything like that ;) You should check out minicmd... if only I had the url somewhere...
license #76904
Special Agent
Junior Member
Junior Member
Posts: 7
Joined: 2003-02-17, 06:01 UTC

Post by *Special Agent »

> but I'd never pay for anything like that You should check out
> minicmd... if only I had the url somewhere...

try here: http://homepages.borland.com/torry/apps/utilities/system/minicmd.zip

or here:
http://www.geocities.com/urifrid/minicmd-1.5-src.zip

-=SA=-
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 09-03-2003 05:09:08 +0000 TucknDar wrote:

T> I love those little commandline utilities :)

Yep, there are a lot of them, for example psshutdown.exe from Mark Russinovich PsTools. But I like down.exe more.

T> but I'd never pay for anything like that ;)

I have free licence from author... ;)

T> You should check out minicmd...

Well, I did. What can I say... It's not a marker to Winconsole.[/face]
Post Reply