• 为文件夹新增右键菜单


    实现效果:

      

    知识运用:

      Reistry类的SetValue

    实现代码:

            private void button1_Click(object sender, EventArgs e)
            {
                Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\Open_Command","","在命令行打开");
                Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\Open_Command\Command", "", "cmd.exe %1");
            }
    

      

  • 相关阅读:
    【leetcode】二叉搜索树的最近公共祖先
    052-12
    052-11
    052-10
    052-9
    052-8
    052-6
    052-5
    052-3
    052-2
  • 原文地址:https://www.cnblogs.com/feiyucha/p/10307253.html
Copyright © 2020-2023  润新知