I am moving this blog to my own word-press site. So all new blogs and updates will be published there. Please use this new link.
http://stembits.in/adding-wrap-this-code-context-menu-to-files/
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
pks_auto_file.reg
Windows Registry Editor Version 5.00
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pks_auto_file]
@=""
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pks_auto_file\shell]
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pks_auto_file\shell\edit]
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pks_auto_file\shell\edit\command]
@="\"C:\\Vim\\vim73\\gvim.exe\" \"%1\""
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pks_auto_file\shell\WrapThisCode]
@="Wrap This Code"
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pks_auto_file\shell\WrapThisCode\command]
@="D:\\\\oraclexe\\\\app\\\\oracle\\\\product\\\\11.2.0\\\\server\\\\bin\\\\wrap.exe iname=%1 oname=%1.pls"
http://stembits.in/adding-wrap-this-code-context-menu-to-files/
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_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pkb_auto_file]
@=""
"EditFlags"=hex:00,00,00,00
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pkb_auto_file\shell]
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pkb_auto_file\shell\edit]
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pkb_auto_file\shell\edit\command]
@="\"C:\\Vim\\vim73\\gvim.exe\" \"%1\""
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pkb_auto_file\shell\WrapThisCode]
@="Wrap This Code"
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pkb_auto_file\shell\WrapThisCode\command]
@="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_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pks_auto_file]
@=""
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pks_auto_file\shell]
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pks_auto_file\shell\edit]
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pks_auto_file\shell\edit\command]
@="\"C:\\Vim\\vim73\\gvim.exe\" \"%1\""
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pks_auto_file\shell\WrapThisCode]
@="Wrap This Code"
[HKEY_USERS\S-1-5-21-327977197-722688110-3432374522-1000\Software\Classes\pks_auto_file\shell\WrapThisCode\command]
@="D:\\\\oraclexe\\\\app\\\\oracle\\\\product\\\\11.2.0\\\\server\\\\bin\\\\wrap.exe iname=%1 oname=%1.pls"
No comments:
Post a Comment