在开始菜单中,点击“设置”图标,打开设置面板。在设置面板中,点击“隐私”,在左侧菜单中选择“活动历史”。
1. 在开始菜单中,点击“设置”图标,打开设置面板。
2. 在设置面板中,点击“隐私”,在左侧菜单中选择“活动历史”。
3. 在右侧窗口中,点击“关闭最近使用的文件”,确定关闭最近使用的文件。
代码:
//关闭最近使用的文件
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "powershell";
startInfo.Arguments = "-Command \"Set-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'Start_TrackDocs' -Value 0\"";
Process.Start(startInfo);
本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处
评论列表(15条)