Vidyarthiplus (V+) - Indian Students Online Education Forum

Full Version: Lock,Sleep,Restart,Shutdown your system via Right Click Context menu
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just think of it when you got all things like 
[ul][li]Lock,[/li][li]Sleep,[/li][li]Restart,[/li][li]Shutdown [/li][/ul]
of your system in Right Context menu!
It will be awesome uh?

If yes then we can do this in two methods
Manual
Using Windows registry file.
To do in Manual do the following
1.Create a new text document in Desktop. (Right Click-->New-->Text Document)
[Image: ZLfX9.png]
2.Open it by double click it or Right click-->Open
[Image: MerqV.png]
3.Now copy the below code and paste it in text document and save it.
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Lock Computer]
"icon"="shell32.dll,-325"
"Position"="Bottom"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Sleep Computer]
"icon"="shell32.dll,-331"
"Position"="Bottom"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Computer]
"icon"="shell32.dll,-221"
"Position"="Bottom"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Shutdown Computer]
"icon"="shell32.dll,-329"
"Position"="Bottom"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Lock Computer\command]
@="Rundll32 User32.dll,LockWorkStation"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Sleep Computer\command]
@="rundll32.exe powrprof.dll,SetSuspendState 0,1,0"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Restart Computer\command]
@="shutdown.exe -r -t 00 -f"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Shutdown Computer\command]
@="shutdown.exe -s -t 00 -f"
4.Now rename it to any name with .reg extension.
Note: It will open a prompt windows Click Yes.
5.Double click on .reg file which was created now.
6.UAC will open and ask for permission click on Yes.
7.Now registry editor will ask for conformation so Click on Yes
[Image: ZfaNm.png]
8.It will display successful message.
[Image: zjGdN.png]
9.Now right click and see.
[Image: I1amy.png]
If you are not ready to do this in manual you got another method which can be done using Windows Registry file.
1.Attachment the Registry File.
[attachment=2331]

2.Extract the reg file from it.
3.Now double click on it.
4.UAC will open and ask for permission click on Yes.
5.Now registry editor will ask for conformation so Click on Yes
[Image: ZfaNm.png]
6.It will display successful message.
[Image: zjGdN.png]
7.Now right click and see.
[Image: I1amy.png]
wow wat an idea sir ji....