C#またはVB.netデスクトップアプリケーションを使用してブラウザの履歴をクリアする方法はありますか?どうすればいいですか?Windowsデスクトップアプリケーションから閲覧履歴をクリアしますか?
ブラウザの名前、開始時刻、使用時間などがわかりました。しかし、特定のブラウザ履歴を削除することはできません。可能ですか?または任意のアイデアや提案。
これは私のコードです:事前に
Process[] processlist = Process.GetProcesses();
RegistryKey browserKeys;
browserKeys = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\WOW6432Node\Clients\StartMenuInternet");
if (browserKeys == null)
browserKeys = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Clients\StartMenuInternet");
string[] browserNames = browserKeys.GetSubKeyNames();
foreach (Process theprocess in processlist)
{
foreach (string Bkeys in browserNames)
{
string BrowseKeys = Bkeys.ToLower().Replace(".exe", "").ToString();
if (theprocess.ProcessName.ToLower().ToString() == BrowseKeys.ToLower().ToString())
{
table1.Rows.Add(theprocess.ProcessName.ToUpper().ToString(), theprocess.StartTime.ToString(), theprocess.UserProcessorTime.ToString(), theprocess.TotalProcessorTime.ToString(), DateTime.Now);
}
}
}
おかげで、
R1 ....
なぜ彼に尋ねることなくユーザーデータを削除するのですか?または彼の知識なしで?一般に他のプログラムのデータを変更する理由は何ですか?そして、あなたはasp.netにタグを付けましたか? – Aristos