解决方案 »

  1.   

    我按照你发的试了试,程序要出现,这是代码:            string MyFileName = string.Format("{0} %1", Application.ExecutablePath);
                string MyExtName = ".gzk";
                RegistryKey MyReg = Registry.ClassesRoot.CreateSubKey(MyExtName);
                RegistryKey shell = MyReg.CreateSubKey(@"\shell");
                RegistryKey custom = shell.CreateSubKey("解压gzk");
                RegistryKey cmd = custom.CreateSubKey("command");
                cmd.SetValue(string.Empty, MyFileName);
                cmd.Close();
                custom.Close();
                shell.Close();