View Single Post
Old 09-16-2008, 09:23 AM   #73
Astrotoy7
A Face from The Past
 
Astrotoy7's Avatar
 
Join Date: Apr 2002
Posts: 10,284
Notable contributor Helpful! Folder extraordinaire LFN Staff Member 
if you enjoy R click powah...here's something you'd like then chainz....

copy and paste text below into a notepad .txt document. Rename whatever.txt to whatever.reg This should change filetype to a registry key. Double click to add to your registry. If successful, you will now get a ''take ownership'' option when you r.click a file. Handy for fiddling with system/locked files...

to ensure you have changed filetype correctly, ensure you have ''hide known filetypes'' OFF (in folder and search options)

Quote:
[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"
mtfbwya


Asinus asinum fricat
Astrotoy7 is offline   you may: quote & reply,