Control Panel
Forum
Hosting Help
6 Months free Hosting (New!)
Resources
Login
Members
Shared Hosting
|
New Features
|
Advertise
|
Tutorials
|
Product Reviews in India
|
Free aptitude test questions
|
TATA Nano Car reviews
Total
members
:
82534
Average new registrations per day (in last 7 days):
51
New Registration:
Open
Register Now
Home
»
Resources
»
A few Little Registry Tricks that will make your developing ...
ASP.NET
ADO.NET
Web Services
Remoting
Visual Studio 2005
Error Bank
Interview Questions
Tips & Tricks
XML
HTML
Jscript/Javascript
IIS
Windows
General
Submit Resource or code snippet
... and get
surprise gifts
Win Digital camera, ASP.NET Books, Free softwares!!
A few Little Registry Tricks that will make your developing life easier (Part 1)
31 May, 2008
Author:
Elad Karako
Israeli Netanya Academic College (CS b.Sc)
Summary
Context Menu For:
DLL,OCX
and- adding right click Context Menu with any exe target for all files (any king you right click).
.NET Classes used :
Registry Codes Will be published as red,
those should be copy to a new reg file, (and saved).
give you ability to
register
or
unRegister
a DLL file By Right clicking on it and selecting (register or unregister) from the right click menu.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\dllfile]
@=""
"AlwaysShowExt"=""
"EditFlags"=hex:01,00,00,00
"TileInfo"="prop:FileVersion;FileDescription"
"InfoTip"="prop:FileDescription;Company;FileVersion;Create;Size"
"NoOpen"=""
[HKEY_CLASSES_ROOT\dllfile\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25, 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00, 65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,35, 00,34,00,00,00
[HKEY_CLASSES_ROOT\dllfile\shell]
@="register"
[HKEY_CLASSES_ROOT\dllfile\shell\register]
[HKEY_CLASSES_ROOT\dllfile\shell\register\command]
@="\"C:\\WINDOWS\\system32\\regsvr32.exe\" \"%1\""
[HKEY_CLASSES_ROOT\dllfile\shell\unRegister]
[HKEY_CLASSES_ROOT\dllfile\shell\unRegister\command]
@="\"C:\\WINDOWS\\system32\\regsvr32.exe\" \"/u\" \"%1\""
ok. this one is for OCX files
(those are mostly activeX for developers of vb6 (+)
or c++ (vc).
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\ocxfile]
"NoOpen"=""
@="ActiveX"
"EditFlags"=dword:00000000
"AlwaysShowExt"=""
"BrowserFlags"=dword:00000008
[HKEY_CLASSES_ROOT\ocxfile\DefaultIcon]
@="shell32.dll,72"
[HKEY_CLASSES_ROOT\ocxfile\shell]
@="register"
[HKEY_CLASSES_ROOT\ocxfile\shell\register]
[HKEY_CLASSES_ROOT\ocxfile\shell\register\command]
@="\"C:\\WINDOWS\\system32\\regsvr32.exe\" \"%1\""
[HKEY_CLASSES_ROOT\ocxfile\shell\unRegister]
[HKEY_CLASSES_ROOT\ocxfile\shell\unRegister\command]
@="\"C:\\WINDOWS\\system32\\regsvr32.exe\" \"/u\" \"%1\""
now save those files, and run them.
allow (click
yes
) and click
ok
now for our second deal:
I would like to add a command that will open when I right click any file.
what's it is good for?
some software allow you to run diagnostics on files,
the alternative is to use the mouse every time you wish to run the program with your file- open your program path location, also- open your target file path location, and do a dirty drag&drop,
this is messy, sometimes you miss and move/copy files.. shortly- a mess !
notice:
copy the red registry part from here,
and you should edit it by your choice of program.
it could be any program, but I will show you an Example for a Notepad.exe (avilable to any Win)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\MYNAME]
[HKEY_CLASSES_ROOT\*\shell\MYNAME\command]
@="\"EXEPATH\" \"%1\""
OK:
1. change MYNAME to any string (letters only)
for example
Open With Notepad
2. change EXEPATH to the path of your exe.
for example
your notepad.exe is placed in:
c:\WINDOWS\system32\notepad.exe
in the registry path's string a slash "\"
became double slash "\\"
so your string should look like that:
c:\\WINDOWS\\system32\\notepad.exe
now watch the full reg file example for the
notepad.exe example
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\Open With Notepad]
[HKEY_CLASSES_ROOT\*\shell\Open With Notepad\command]
@="\"c:\\WINDOWS\\system32\\notepad.exe\" \"%1\""
use your own application by making a copy of this reg file and changing the text of MYNAME and EXEPATH,
each time for something else.
you can delete an unneeded value by running regedit.exe and browsing the path HKEY_CLASSES_ROOT\*\shell
expand this node and watch all those addons you make.
right click on a folder (like Open With Notepad Folder) and select delete, you will stop getting "Open With Notepad" anymore.
that's it.
give it a try, all those are major time savers.
enjoy.
Elad.
Feedbacks about this page from members:
- No Feedbacks yet !! -
Submit Feedback
View All Feedbacks
Partners
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies.
All Rights Reserved.