I'm trying to remove cookies of chrome browser. Firstly I declared the path
string chromeLocation1 = "C:\Users" + Environment.UserName.ToString() + "\AppData\Local\Google\Chrome\User Data\Default\Local Storage";
When I try to run my remove code "The file is in use by another program or user" error appears. So I tried to kill chrome.exe
's proccess
foreach (var process in Process.GetProcessesByName("chrome.exe"))
{
process.Kill();
}
But now it gives me "Access Denied" error even I run it as administrator. What should I do to remove these cookies?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…