using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Windows.Forms;
namespace reg_AutoStart
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
try
{ RegistryKey R_local = Registry.CurrentUser;
//RegistryKey R_local = Registry.LocalMachine;
RegistryKey R_run = R_local.CreateSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run");
R_run.DeleteValue("adobe", false); //adobe是值得名称
R_run.Close();
R_local.Close();
}
catch
{
}
}
}
}
「C#」删除注册表中的值
猜你喜欢
转载自blog.csdn.net/iverson1180/article/details/83216681
今日推荐
周排行