GithubHelp home page GithubHelp logo

winctxmenueditor's Introduction

Windows Context Menu Editor

Create & delete Windows context menu with json config file.

Build Requirement

  • .NET Core 5.0

Tested Platform

  • Windows 10 20H2

Build

$ dotnet build

Run

Currently create context menu on specific file extension require UAC elevation to write registry under HKEY_CLASS_ROOT.

Run with dotnet run is not able to popup a UAC dialog and will throw an exception.

Command-line Arguments

Create context menu with specific config file.

$ ./ContextmenuEditor.exe create ./config.json

Delete context menu defined in specific config fire.

$ ./ContextmenuEditor.exe create ./config.json

Config File

See config-example.json

{
  "directory": true,
  "directory_background": true,
  "drive": true,
  "file_extensions": [".txt"],
  "key": "TestCtxMenu",
  "command": {
    "name": "Context Menu Test",
    "sub_commands": {
      "Foo": {
        "name": "Command Foo",
        "shell": "Command Foo %1"
      },
      "Bar": {
        "name": "Command Bar",
        "shell": "Command Bar %1"
      },
      "SubMenu": {
        "name": "Sub Menu",
        "sub_commands": {
          "Foo": {
            "name": "Command Foo",
            "shell": "Command Foo %1"
          }
        }
      }
    }
  }
}

This will create a context menu on hard-drive, directory, directory background and *.txt file like this:

-----------------------
| ...                 | ---------------
| Context Menu Test > | | Command Foo |
| ...                 | | Command Bar | ---------------
----------------------- | Sub Menu  > | | Command Foo |
                        --------------- ---------------
                                        
                                        

winctxmenueditor's People

Contributors

sardinefish avatar

Stargazers

Brad Kwastel avatar  avatar 神楽坂 静瑶 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.