C#添加系统自定义右键菜单
tring.Empty, associatedProgramFullPath); //刷新到磁盘并释放资源 associatedProgramKey.Close(); rightCommondKey.Close(); shellKey.Close(); }private void AddDirectoryContextMenuItem(string itemName, string associatedProgramFullPath){ //创建项:shell RegistryKey shellKey = Registry.ClassesRoot.OpenSub