Adding Wrap This Code context Menu to files

By | November 29, 2012
I was working on some packages and I wanted to wrap this code before I could deliver, the parameters that we need to pass to the wrap utility are not something easy to remember.

So I decided to make it easy. What I finally achieved is this..
The right click menu of PKS and PKG files now show a nice option called “Wrap This Code”.

If you think this is handy, save following registry entries in .reg files and import them into registry. 
You might want to do some minor changes , for example if you are using some different extensions or you have different path for the wrap.exe etc.

pkb_auto_file.reg

Windows Registry Editor Version 5.00

[HKEY_USERSS-1-5-21-327977197-722688110-3432374522-1000SoftwareClassespkb_auto_file]
@=””
“EditFlags”=hex:00,00,00,00

[HKEY_USERSS-1-5-21-327977197-722688110-3432374522-1000SoftwareClassespkb_auto_fileshell]

[HKEY_USERSS-1-5-21-327977197-722688110-3432374522-1000SoftwareClassespkb_auto_fileshelledit]

[HKEY_USERSS-1-5-21-327977197-722688110-3432374522-1000SoftwareClassespkb_auto_fileshelleditcommand]
@=””C:\Vim\vim73\gvim.exe” “%1″”

[HKEY_USERSS-1-5-21-327977197-722688110-3432374522-1000SoftwareClassespkb_auto_fileshellWrapThisCode]
@=”Wrap This Code”

[HKEY_USERSS-1-5-21-327977197-722688110-3432374522-1000SoftwareClassespkb_auto_fileshellWrapThisCodecommand]
@=”D:\\oraclexe\\app\\oracle\\product\\11.2.0\\server\\bin\\wrap.exe  iname=%1 oname=%1.plb”

pks_auto_file.reg


Windows Registry Editor Version 5.00

[HKEY_USERSS-1-5-21-327977197-722688110-3432374522-1000SoftwareClassespks_auto_file]
@=””

[HKEY_USERSS-1-5-21-327977197-722688110-3432374522-1000SoftwareClassespks_auto_fileshell]

[HKEY_USERSS-1-5-21-327977197-722688110-3432374522-1000SoftwareClassespks_auto_fileshelledit]

[HKEY_USERSS-1-5-21-327977197-722688110-3432374522-1000SoftwareClassespks_auto_fileshelleditcommand]
@=””C:\Vim\vim73\gvim.exe” “%1″”

[HKEY_USERSS-1-5-21-327977197-722688110-3432374522-1000SoftwareClassespks_auto_fileshellWrapThisCode]
@=”Wrap This Code”

[HKEY_USERSS-1-5-21-327977197-722688110-3432374522-1000SoftwareClassespks_auto_fileshellWrapThisCodecommand]
@=”D:\\oraclexe\\app\\oracle\\product\\11.2.0\\server\\bin\\wrap.exe  iname=%1 oname=%1.pls”

Leave a Reply

Your email address will not be published. Required fields are marked *