110,570
社区成员
发帖
与我相关
我的任务
分享
using System;
using Microsoft.Win32;
namespace WallPaper
{
class Program
{
static void Main(string[] args)
{
RegistryKey rk = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Themes\LastTheme");
if (rk == null)
{
Console.WriteLine("不存在!");
return;
}
Console.WriteLine("Wallpaper:" + rk.GetValue("Wallpaper"));
Console.WriteLine("按Enter退出!");
Console.ReadLine();
}
}
}