@echo Off
:: Implements "Copy * as Link" menu items in IE and Maxthon
:: Written by Brian Layman
:: Visit me at: http://www.TheCodeCave.com
:: Version 0.1
:: Update Url: http://www.thecodecave.com/?p=152
:: Inspired by Justin's Firefox Plubin
:: Found at: http://justinsomnia.org/2006/05/copy-as-html-link-for-firefox/
:: Create file for the Copy Text as Link
echo ^>%windir%\web\copytextaslink.htm
echo ^>>%windir%\web\copytextaslink.htm
echo ^>>%windir%\web\copytextaslink.htm
:: Create the menu context.
reg ADD "HKCU\Software\Microsoft\Internet Explorer\MenuExt\Copy Te&xt as Link" /ve /t REG_SZ /d "%WINDIR%\web\copytextaslink.htm" /f
reg ADD "HKCU\Software\Microsoft\Internet Explorer\MenuExt\Copy Te&xt as Link" /v Contexts /t REG_DWORD /d 16 /f
:: Create file for Copy Image as Link
echo ^>%windir%\web\copyimageaslink.htm
echo ^>>%windir%\web\copyimageaslink.htm
echo ^>>%windir%\web\copyimageaslink.htm
:: Create the menu context.
reg ADD "HKCU\Software\Microsoft\Internet Explorer\MenuExt\Copy Image as Lin&k" /ve /t REG_SZ /d "%WINDIR%\web\copyimageaslink.htm" /f
reg ADD "HKCU\Software\Microsoft\Internet Explorer\MenuExt\Copy Image as Lin&k" /v Contexts /t REG_DWORD /d 2 /f
:: Done
cls
Echo.
Echo The Right-Click + "Copy * as Link" features have been added to Maxthon
Echo and all other IE based browsers.
Echo.
Echo Please close and restart all browsers to complete the install.
Echo.
Echo Thank you for using this tool from TheCodeCave.com.
Echo.
Echo - Brian
Echo.
Echo.
Echo.
pause