SIR20

Untitled

Nov 25th, 2021
521
355 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using Microsoft.Win32;
  2.  
  3. namespace CommandContext
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             RegistryKey reg = Registry.ClassesRoot.OpenSubKey("DesktopBackground", true);
  10.             RegistryKey reg2 = reg.OpenSubKey("Shell",true).CreateSubKey("TestCommand");
  11.             reg2.SetValue("MUIVerb", "Открыть Уандекс");
  12.             RegistryKey reg3 = reg2.CreateSubKey("command");
  13.             reg3.SetValue(string.Empty, @"C:\Users\acer\Desktop\SaveScreen\SS\SaveScreen.exe");
  14.         }
  15.     }
  16. }
  17.  
RAW Paste Data