spiritpyre Posted June 4, 2005 Posted June 4, 2005 Hi I was wondering if anyone might be able to help me out with this one. I'm trying to remove the "print" option that appears on the right-click/context menu of certain files. I've noticed that it generally only appears for text-based and picture files, and I've been able to get rid of it on the text-based files like so:REGEDIT4;============================================; Remove the "Print" context item from the following filetypes:; - .bat; - .cmd; - .doc; - .html; - .inf; - .ini; - .log (just a textfile with .log extension); - .pdf; - .reg; - .rtf; - .ttf; - .txt; - .vbs; ; as well as a few others;============================================[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document.7\shell\Print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Eraser.Document\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\fonfile\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\htmlfile\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inffile\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inifile\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\pfmfile\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\regfile\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\rtffile\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ttcfile\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ttffile\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\txtfile\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VBSFile\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wordpad.Document.1\shell\print][-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\wrifile\shell\print]I could probably get away with the same result using just a minus [...shell\print\command] but i doesn't really matter to me as long as I remove "Print" from the context menu (without actually interfering with my ability to print the file normally). But when I got to the picture files, I noticed they don't have a [...shell\print] but only a [...shell\printto] and removing it doesn't do anything.For example here are some of the [...shell\printto] values I had deleted:HKLM\SOFTWARE\Classes\giffile\shell\printto\command\: "rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_PrintTo /pt "%1" "%2" "%3" "%4""HKLM\SOFTWARE\Classes\jpegfile\shell\printto\command\: "rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_PrintTo /pt "%1" "%2" "%3" "%4""HKLM\SOFTWARE\Classes\pngfile\shell\printto\command\: "rundll32.exe C:\WINDOWS\system32\shimgvw.dll,ImageView_PrintTo /pt "%1" "%2" "%3" "%4""and I even tried deleting entire key for a given filetype and still can't get it (ie. deleted [HKLM\SOFTWARE\Classes\jpegfile], [HKLM\SOFTWARE\Classes\.jpg] etc)Could someone please shed some light on what's going on here or tell me of some other way to get the same result (preferably with hacking a dll as I can't really automate that)? Any thought or ideas are welcome.
spiritpyre Posted June 7, 2005 Author Posted June 7, 2005 (edited) nevermind I found it... and I post back to my original thread.mods if you're reading this please feel free to remove this (current one not the link please ) thread... Edited June 7, 2005 by spiritpyre
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now