03 November 2011

windows a few tricks and hacks

Here are a few Windows tricks that i find handy
Trick I
                                                                                                                                                                 
(works in xp)
The "Take ownership" hack
Most mods in this windows world require full access to files
this hack comes in handy in such situations
All you need to do is to create a registry entry  and you can get the option in the context menu
Step  I
     copy the following into a notepad window

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]@="Take Ownership""NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\shell\runas\command]@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F""IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
[HKEY_CLASSES_ROOT\Directory\shell\runas]@="Take Ownership""NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t""IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

and save the file with the name "take ownership.reg" (with quotes to save as a Registration Entry file)
step II
 open and allow the file to merge
then right click a file  and you have the option in your context menu as "Take Ownership" use it
and you get the full rights to a file or folder
                                                                                                                                                              
Trick II

 how many times have you wished you could open a folder  in a new window like a link on a website ?
this trick does exactly that (works in xp)
 The "open in a new window"
 step I
 copy the text in a notepad window (blank)

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\opennewwindow]@="Open in New Window"
[HKEY_CLASSES_ROOT\Directory\shell\opennewwindow\command]@="explorer %1"
[HKEY_CLASSES_ROOT\Drive\shell\opennewwindow]@="Open in New Window"
[HKEY_CLASSES_ROOT\Drive\shell\opennewwindow\command]@="explorer %1"

and save the file 
with the name "open in a new window.reg" (with quotes to save as a Registration Entry file)
step II
 open and allow the file to merge
then right click a folder  and you have the option in your context menu
                                                                                                                                                              
Trick III
 (works in xp
Edit any file in notepad

step I
create a registry entry file "edit in notepad.reg" just as you did for above two tricks with following in it

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\edit in Notepad]
[HKEY_CLASSES_ROOT\*\shell\edit in Notepad\command]@="notepad.exe %1"
 step II
 open and allow the file to merge
then right click a file  and you have the option in your context menu as "edit in Notepad"
                                                                                                                                                              
(Trick IV)
Windows7 only
Change Login Screen Background" trick
create a registry entry file "enable login.reg" just as you did for above two tricks with following in it
Windows Registry Editor Version 5.00 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background] 
"OEMBackground"=dword:00000001
  step II
 open and allow the file to merge 
  step III
create the following folder structure 
%windir%\system32\oobe\info\backgrounds\
 step IV
any image in this folder with file name "backgroundDefault.jpg" and filesize limit of 256KB 
will be used as Log-in background  image

however i personally recommend the file dimentions be a factor of your screen dimentions 
                                                                                                                                                              

thats all for now have fun using these tricks