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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|