Using system; using microsoft.win32;
namespace ConsoleApplication1 {class Class1 {[STAThread] public static void Main (string [] args) {// string subPath = @ "Software / Microsoft / Windows / CurrentVersion / Policies / Explorer"; // // String SeparatorChar = @ "/"; // char [] separator = separatorchar.tochararray (); // String [] mypaths = subpath.split (separator); /// registryKey regkey1 = registry.currentuser; // registryKey regury2 = registry.currentuser; // // for (int i = 0; i < Mypaths.length; i ) // {// regkey2 = regkey1.opensubkey (mypaths [i], true); // if (regkey2 == null) // regkey1 = regkey1.createSubkey (mypaths [i]); // Else // regkey1 = regkey2; //} // // regkey1.setValue ("NOFIND", 1); RegKey1.deleteValue ("Nofind"); /// regkey1.close (); // regkey2.close ); // registryKey Software = registry.currentuser.opensubkey ("Software // Microsoft // W Indooking // currentversion // policies // Explorer ", true); /// registryKey PCDESK = Software.createSubkey (" Microsoft // Windows // CurrentVersion // Policies // Explorer "); /// Software.SetValue ("NOFIND", 1); // pcdesk.deletevalue ("nofind"); // Software.close ();
RegistryKey Key = Registry.currentuser; registryKey key2 = key.createSubkey ("Software // Microsoft // Windows // CurrentVersion // Policies // KEY2.SETVALUE (" Nofind ", 1); // Hide Hide Find item key2.deletevalue ("nofind") in the Start menu; key2.close ();}}}