PDA

View Full Version : difficult question (W98)



sheralisaafi
08-18-2003, 10:32 PM
Sir,
I want to put a shortcut of shutdown, logoff and restart on desktop. Can you help me in this regard.

Xavier_Ao
08-19-2003, 01:02 AM
Create a shortcut with the follow as the "Target"
1) restart windows with a single click
C:\windows\rundll.exe user.exe,exitwindowsexec
2) Shutdown windows with a single click
C:\windows\rundll.exe user.exe,exitwindowsp

Always glad to help!
Josh /images/forums/icons/smile.gif

<font color=blue>Windows Protection Error... Press Ctrl+Alt+Del to reboot.</font color=blue>

jdharm
08-19-2003, 08:05 AM
Logoff:

C:\Windows\Rundll32.exe shell32.dll,SHExitWindowsEx 0

This is what I use for Shutdown (full powerdown, where the hardware supports such):

C:\Windows\Rundll32.exe shell32.dll,SHExitWindowsEx 1

This is what I use for Reboot (full hardware reboot, not just OS reboot):

C:\Windows\Rundll32.exe shell32.dll,SHExitWindowsEx 2

Josh
<a target="_blank" href=http://www.jdharm.net>www.jdharm.net</a>