home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 42,036 of 42,547   
   Stan Brown to John Robertson   
   Re: Change the right click context menu    
   03 Jul 22 09:01:24   
   
   XPost: alt.comp.os.windows-10   
   From: the_stan_brown@fastmail.fm   
      
   On Sun, 3 Jul 2022 08:40:49 -0600, John Robertson wrote:   
   >   
   > Is there a way to change the right click context menu for Windows *.bat   
   > batch files to limit the options to just those that I want there?   
   >   
   > I don't want open or open with.   
   > I don't want print (as I can print from the editor)   
   > I don't want Scan with Microsoft Defender...   
   > I don't want share   
   > I don't want Restore previous versions   
   > I don't want send to   
   >   
   > All I do want is what I do with a batch file.   
   > For example, I definitely want the "Run as administrator" item   
   > And I only need "Edit" and not print (because I can print from the editor)   
   > I'm ok with the "Send to" section (but which I never use)   
   > I'm ok with the "cut & copy" section too   
   > I'm ok with the "Create shortcut, deleted, and rename" section   
   > And I'm ok with the "Properties" section   
   >   
   > That's it.   
   > Is there a way to change the batch context menu to do just want I want it   
   > to do? (Mostly just "Run as Administrator" and not much else.   
      
   I think the answer is no -- though Paul may correct me, and I'll be   
   glad to learn something new.   
      
   Normally in HKCR in the Registry, you would find .bat, see what its   
   file type is, find that file type, and make our changes.   
      
   But .bat's "file type" is "PersistentHandler", and that's shared with   
   quite a few three-letter extensions. However, I couldn't find a   
   "PersistentHandler" subkey under HKCR. So those right-click menu   
   items may be hard-coded in Windows, or at least coded in a way that   
   we're not able to change.   
      
   --   
   Stan Brown, Tehachapi, California, USA         https://BrownMath.com/   
   Shikata ga nai...   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca