Results 1 to 5 of 5

Thread: Add New option to the windows explorer pop up menu

  1. #1

    Thread Starter
    Lively Member roglopes's Avatar
    Join Date
    Sep 2002
    Location
    Brazil
    Posts
    113

    Add New option to the windows explorer pop up menu

    Dear friends.
    How I do to make a new option in the windows explorer popup (context menu) that call my application?
    I'm using VB6
    Attached Images Attached Images  

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Add New option to the windows explorer pop up menu

    You can look in Explorer->Folder Options->Filetypes->Advanced.
    You can associate filetypes, and include default actions which show up as right-click events.

    or, the easier way,

    just click RUN WITH and find your program, then click Always use this program when ...

  3. #3

    Thread Starter
    Lively Member roglopes's Avatar
    Join Date
    Sep 2002
    Location
    Brazil
    Posts
    113

    Re: Add New option to the windows explorer pop up menu

    Dear friend.
    I want to put it via code using Visual Basic 6!!!!???

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Add New option to the windows explorer pop up menu

    I believe there is also a registry hack to do this. Try searching the forums. I remember seeing it lately.

    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Add New option to the windows explorer pop up menu

    if you want it to apply to all files, you have to add a hive to
    HKEY CLASSES ROOT/*

    otherwise add it for the file types you want to include eg for RichTextFile
    HKEY_CLASSES_ROOT\rtffile\shell\yourapp
    HKEY_CLASSES_ROOT\rtffile\shell\yourapp\command
    @=C:\Program Files\yourappfolder\yourapp.EXE %1



    actual example from registry

    [HKEY_CLASSES_ROOT\rtffile\shell]
    [HKEY_CLASSES_ROOT\rtffile\shell\open]
    [HKEY_CLASSES_ROOT\rtffile\shell\open\command]
    @="\"C:\\Program Files\\Windows NT\\Accessories\\WORDPAD.EXE\" \"%1\""
    [HKEY_CLASSES_ROOT\rtffile\shell\print]
    [HKEY_CLASSES_ROOT\rtffile\shell\print\command]
    @="\"C:\\Program Files\\Windows NT\\Accessories\\WORDPAD.EXE\" /p \"%1\""
    [HKEY_CLASSES_ROOT\rtffile\shell\printto]
    [HKEY_CLASSES_ROOT\rtffile\shell\printto\command]
    @="\"C:\\Program Files\\Windows NT\\Accessories\\WORDPAD.EXE\" /pt \"%1\" \"%2\" \"%3\" \"%4\""

    regds pete

    editing the registry can be destructive

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width