A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Customizing Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Turn Off / Restart icon on desktop



 
 
Thread Tools Display Modes
  #1  
Old February 13th 09, 06:36 PM posted to microsoft.public.windowsxp.customize
GoldHawk
external usenet poster
 
Posts: 48
Default Turn Off / Restart icon on desktop

Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.
Ads
  #2  
Old February 13th 09, 06:51 PM posted to microsoft.public.windowsxp.customize
Big_Al
external usenet poster
 
Posts: 1,430
Default Turn Off / Restart icon on desktop

GoldHawk said this on 2/13/2009 1:36 PM:
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.


For restart:
Right click on the desktop, new - shortcut.
Put this as the command
%windir%\System32\shutdown.exe -r -t 0

the -r = restart the -t = time delay = 0 seconds.

Same logic for a shutdown except us
%windir%\System32\shutdown.exe -s -t 0

the -s = shutdown same for -t
  #3  
Old February 13th 09, 06:51 PM posted to microsoft.public.windowsxp.customize
Big_Al
external usenet poster
 
Posts: 1,430
Default Turn Off / Restart icon on desktop

GoldHawk said this on 2/13/2009 1:36 PM:
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.


For restart:
Right click on the desktop, new - shortcut.
Put this as the command
%windir%\System32\shutdown.exe -r -t 0

the -r = restart the -t = time delay = 0 seconds.

Same logic for a shutdown except us
%windir%\System32\shutdown.exe -s -t 0

the -s = shutdown same for -t
  #4  
Old February 13th 09, 07:00 PM posted to microsoft.public.windowsxp.customize
Big_Al
external usenet poster
 
Posts: 1,430
Default Turn Off / Restart icon on desktop

Big_Al said this on 2/13/2009 1:51 PM:
GoldHawk said this on 2/13/2009 1:36 PM:
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.


For restart:
Right click on the desktop, new - shortcut.
Put this as the command
%windir%\System32\shutdown.exe -r -t 0

the -r = restart the -t = time delay = 0 seconds.

Same logic for a shutdown except us
%windir%\System32\shutdown.exe -s -t 0

the -s = shutdown same for -t


You can also click the change icon button. There is a pretty good red
power button for the restart in %SystemRoot%\system32\SHELL32.dll. And
I use the large right pointing green arrow head in that same file for
the restart.
  #5  
Old February 13th 09, 07:00 PM posted to microsoft.public.windowsxp.customize
Big_Al
external usenet poster
 
Posts: 1,430
Default Turn Off / Restart icon on desktop

Big_Al said this on 2/13/2009 1:51 PM:
GoldHawk said this on 2/13/2009 1:36 PM:
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.


For restart:
Right click on the desktop, new - shortcut.
Put this as the command
%windir%\System32\shutdown.exe -r -t 0

the -r = restart the -t = time delay = 0 seconds.

Same logic for a shutdown except us
%windir%\System32\shutdown.exe -s -t 0

the -s = shutdown same for -t


You can also click the change icon button. There is a pretty good red
power button for the restart in %SystemRoot%\system32\SHELL32.dll. And
I use the large right pointing green arrow head in that same file for
the restart.
  #6  
Old February 13th 09, 11:04 PM posted to microsoft.public.windowsxp.customize
GoldHawk
external usenet poster
 
Posts: 48
Default Turn Off / Restart icon on desktop

That's brilliant. Thank Big Al. Works a treat. I've used those icons, too.

It's the first time I've used that shortcut wizard. I've always created
desktop shortcuts by right clicking from the file or folder in Explorer. So,
leant something new.

Would it be too simple if using the same logic but replacing -s or -r with
-h would give a Hibernate shortcut ?

With thanks.

Mike

"Big_Al" wrote:

Big_Al said this on 2/13/2009 1:51 PM:
GoldHawk said this on 2/13/2009 1:36 PM:
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.


For restart:
Right click on the desktop, new - shortcut.
Put this as the command
%windir%\System32\shutdown.exe -r -t 0

the -r = restart the -t = time delay = 0 seconds.

Same logic for a shutdown except us
%windir%\System32\shutdown.exe -s -t 0

the -s = shutdown same for -t


You can also click the change icon button. There is a pretty good red
power button for the restart in %SystemRoot%\system32\SHELL32.dll. And
I use the large right pointing green arrow head in that same file for
the restart.

  #7  
Old February 13th 09, 11:04 PM posted to microsoft.public.windowsxp.customize
GoldHawk
external usenet poster
 
Posts: 48
Default Turn Off / Restart icon on desktop

That's brilliant. Thank Big Al. Works a treat. I've used those icons, too.

It's the first time I've used that shortcut wizard. I've always created
desktop shortcuts by right clicking from the file or folder in Explorer. So,
leant something new.

Would it be too simple if using the same logic but replacing -s or -r with
-h would give a Hibernate shortcut ?

With thanks.

Mike

"Big_Al" wrote:

Big_Al said this on 2/13/2009 1:51 PM:
GoldHawk said this on 2/13/2009 1:36 PM:
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.


For restart:
Right click on the desktop, new - shortcut.
Put this as the command
%windir%\System32\shutdown.exe -r -t 0

the -r = restart the -t = time delay = 0 seconds.

Same logic for a shutdown except us
%windir%\System32\shutdown.exe -s -t 0

the -s = shutdown same for -t


You can also click the change icon button. There is a pretty good red
power button for the restart in %SystemRoot%\system32\SHELL32.dll. And
I use the large right pointing green arrow head in that same file for
the restart.

  #8  
Old February 14th 09, 03:13 AM posted to microsoft.public.windowsxp.customize
Big_Al
external usenet poster
 
Posts: 1,430
Default Turn Off / Restart icon on desktop

GoldHawk said this on 2/13/2009 6:04 PM:
That's brilliant. Thank Big Al. Works a treat. I've used those icons, too.

It's the first time I've used that shortcut wizard. I've always created
desktop shortcuts by right clicking from the file or folder in Explorer. So,
leant something new.

Would it be too simple if using the same logic but replacing -s or -r with
-h would give a Hibernate shortcut ?

With thanks.

Mike

"Big_Al" wrote:

Big_Al said this on 2/13/2009 1:51 PM:
GoldHawk said this on 2/13/2009 1:36 PM:
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.
For restart:
Right click on the desktop, new - shortcut.
Put this as the command
%windir%\System32\shutdown.exe -r -t 0

the -r = restart the -t = time delay = 0 seconds.

Same logic for a shutdown except us
%windir%\System32\shutdown.exe -s -t 0

the -s = shutdown same for -t

You can also click the change icon button. There is a pretty good red
power button for the restart in %SystemRoot%\system32\SHELL32.dll. And
I use the large right pointing green arrow head in that same file for
the restart.


If your PC supports it, try it, what can happen but get an error message!
  #9  
Old February 14th 09, 03:13 AM posted to microsoft.public.windowsxp.customize
Big_Al
external usenet poster
 
Posts: 1,430
Default Turn Off / Restart icon on desktop

GoldHawk said this on 2/13/2009 6:04 PM:
That's brilliant. Thank Big Al. Works a treat. I've used those icons, too.

It's the first time I've used that shortcut wizard. I've always created
desktop shortcuts by right clicking from the file or folder in Explorer. So,
leant something new.

Would it be too simple if using the same logic but replacing -s or -r with
-h would give a Hibernate shortcut ?

With thanks.

Mike

"Big_Al" wrote:

Big_Al said this on 2/13/2009 1:51 PM:
GoldHawk said this on 2/13/2009 1:36 PM:
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.
For restart:
Right click on the desktop, new - shortcut.
Put this as the command
%windir%\System32\shutdown.exe -r -t 0

the -r = restart the -t = time delay = 0 seconds.

Same logic for a shutdown except us
%windir%\System32\shutdown.exe -s -t 0

the -s = shutdown same for -t

You can also click the change icon button. There is a pretty good red
power button for the restart in %SystemRoot%\system32\SHELL32.dll. And
I use the large right pointing green arrow head in that same file for
the restart.


If your PC supports it, try it, what can happen but get an error message!
  #10  
Old February 14th 09, 07:16 AM posted to microsoft.public.windowsxp.customize
ju.c[_2_]
external usenet poster
 
Posts: 1,133
Default Turn Off / Restart icon on desktop

Create a desktop or quick launch shortcut to open the
"Turn off computer" dialog box:

1. Open Notepad and paste the following:

Set wshshell = CreateObject("Shell.Application")
wshshell.ShutdownWindows

2. Save-as Shutdown_Box.vbs (or any name + .vbs)

3. Move the file somewhere then create a new shortcut
to it on the desktop. To change the icon to the
shutdown icon browse here and look for the icon in
the window: C:\WINDOWS\system32\shell32.dll

4. If you want it on the Quick Launch area, just move
it there from the desktop.


ju.c


"GoldHawk" wrote in message ...
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.

  #11  
Old February 14th 09, 07:16 AM posted to microsoft.public.windowsxp.customize
ju.c[_2_]
external usenet poster
 
Posts: 1,133
Default Turn Off / Restart icon on desktop

Create a desktop or quick launch shortcut to open the
"Turn off computer" dialog box:

1. Open Notepad and paste the following:

Set wshshell = CreateObject("Shell.Application")
wshshell.ShutdownWindows

2. Save-as Shutdown_Box.vbs (or any name + .vbs)

3. Move the file somewhere then create a new shortcut
to it on the desktop. To change the icon to the
shutdown icon browse here and look for the icon in
the window: C:\WINDOWS\system32\shell32.dll

4. If you want it on the Quick Launch area, just move
it there from the desktop.


ju.c


"GoldHawk" wrote in message ...
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.

  #12  
Old February 14th 09, 01:38 PM posted to microsoft.public.windowsxp.customize
GoldHawk
external usenet poster
 
Posts: 48
Default Turn Off / Restart icon on desktop

Unfortunately, this didn't work for Hibernate. No error message, just didn't
do anything. It's not a great issue, but would have been nice if it had.

"Big_Al" wrote:

GoldHawk said this on 2/13/2009 6:04 PM:
That's brilliant. Thank Big Al. Works a treat. I've used those icons, too.

It's the first time I've used that shortcut wizard. I've always created
desktop shortcuts by right clicking from the file or folder in Explorer. So,
leant something new.

Would it be too simple if using the same logic but replacing -s or -r with
-h would give a Hibernate shortcut ?

With thanks.

Mike

"Big_Al" wrote:

Big_Al said this on 2/13/2009 1:51 PM:
GoldHawk said this on 2/13/2009 1:36 PM:
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.
For restart:
Right click on the desktop, new - shortcut.
Put this as the command
%windir%\System32\shutdown.exe -r -t 0

the -r = restart the -t = time delay = 0 seconds.

Same logic for a shutdown except us
%windir%\System32\shutdown.exe -s -t 0

the -s = shutdown same for -t
You can also click the change icon button. There is a pretty good red
power button for the restart in %SystemRoot%\system32\SHELL32.dll. And
I use the large right pointing green arrow head in that same file for
the restart.


If your PC supports it, try it, what can happen but get an error message!

  #13  
Old February 14th 09, 01:38 PM posted to microsoft.public.windowsxp.customize
GoldHawk
external usenet poster
 
Posts: 48
Default Turn Off / Restart icon on desktop

Unfortunately, this didn't work for Hibernate. No error message, just didn't
do anything. It's not a great issue, but would have been nice if it had.

"Big_Al" wrote:

GoldHawk said this on 2/13/2009 6:04 PM:
That's brilliant. Thank Big Al. Works a treat. I've used those icons, too.

It's the first time I've used that shortcut wizard. I've always created
desktop shortcuts by right clicking from the file or folder in Explorer. So,
leant something new.

Would it be too simple if using the same logic but replacing -s or -r with
-h would give a Hibernate shortcut ?

With thanks.

Mike

"Big_Al" wrote:

Big_Al said this on 2/13/2009 1:51 PM:
GoldHawk said this on 2/13/2009 1:36 PM:
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.
For restart:
Right click on the desktop, new - shortcut.
Put this as the command
%windir%\System32\shutdown.exe -r -t 0

the -r = restart the -t = time delay = 0 seconds.

Same logic for a shutdown except us
%windir%\System32\shutdown.exe -s -t 0

the -s = shutdown same for -t
You can also click the change icon button. There is a pretty good red
power button for the restart in %SystemRoot%\system32\SHELL32.dll. And
I use the large right pointing green arrow head in that same file for
the restart.


If your PC supports it, try it, what can happen but get an error message!

  #14  
Old February 14th 09, 01:44 PM posted to microsoft.public.windowsxp.customize
GoldHawk
external usenet poster
 
Posts: 48
Default Turn Off / Restart icon on desktop

The solution for Shutdown and Re-start suggested by Big Al worked fine but
just for my own education I thought I would try your suggestion.

After putting shortcut on the desktop, I had this error message:

Script: C:\WINDOWS\Shutdown by Mike.vbs
Line: 1
Char: 49
Error: Expected end of statement
Code: 800A0401
Source: Microsoft VBScript compilation error

Any further thoughts please ?


"ju.c" wrote:

Create a desktop or quick launch shortcut to open the
"Turn off computer" dialog box:

1. Open Notepad and paste the following:

Set wshshell = CreateObject("Shell.Application")
wshshell.ShutdownWindows

2. Save-as Shutdown_Box.vbs (or any name + .vbs)

3. Move the file somewhere then create a new shortcut
to it on the desktop. To change the icon to the
shutdown icon browse here and look for the icon in
the window: C:\WINDOWS\system32\shell32.dll

4. If you want it on the Quick Launch area, just move
it there from the desktop.


ju.c


"GoldHawk" wrote in message ...
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.


  #15  
Old February 14th 09, 01:44 PM posted to microsoft.public.windowsxp.customize
GoldHawk
external usenet poster
 
Posts: 48
Default Turn Off / Restart icon on desktop

The solution for Shutdown and Re-start suggested by Big Al worked fine but
just for my own education I thought I would try your suggestion.

After putting shortcut on the desktop, I had this error message:

Script: C:\WINDOWS\Shutdown by Mike.vbs
Line: 1
Char: 49
Error: Expected end of statement
Code: 800A0401
Source: Microsoft VBScript compilation error

Any further thoughts please ?


"ju.c" wrote:

Create a desktop or quick launch shortcut to open the
"Turn off computer" dialog box:

1. Open Notepad and paste the following:

Set wshshell = CreateObject("Shell.Application")
wshshell.ShutdownWindows

2. Save-as Shutdown_Box.vbs (or any name + .vbs)

3. Move the file somewhere then create a new shortcut
to it on the desktop. To change the icon to the
shutdown icon browse here and look for the icon in
the window: C:\WINDOWS\system32\shell32.dll

4. If you want it on the Quick Launch area, just move
it there from the desktop.


ju.c


"GoldHawk" wrote in message ...
Is there any easy way to put a Turn Off and / or Restart button on the
desktop (without using Regedit) ?

With thanks.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 01:11 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.