如何在VS 2005中使用C#Windows应用程序清除Internet Cookies和缓存. [英] How do I clean Internet Cookies and Cache using C# Windows application in VS 2005. .

查看:66
本文介绍了如何在VS 2005中使用C#Windows应用程序清除Internet Cookies和缓存.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在VS 2005中使用C#Windows应用程序清理Internet Cookies和缓存..

How to clean Internet Cookies and Cache using C# Windows application in VS 2005. .

推荐答案

缓存
如何使用C#清除Internet缓存
饼干
一种简单的方法是使用Environment.SpecialFolder枚举获取Cookies文件夹,然后删除该文件夹中的所有文件
Cache
How To Clear Internet Cache Using C#
Cookie
An easy way would be to use Environment.SpecialFolder enumeration to get the Cookies folder and then Delete all the files inside the folder
public void deleteCookies()
    {
        DirectoryInfo di = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.Cookies));
        foreach (FileInfo fl in di.GetFiles())
            fl.Delete();
    }


贷方到清除C#中的Internet Cookie

希望以上信息对您有所帮助.


Credit goes to Clearing Internet Cookies In C#

Hope the above information helps.


这篇关于如何在VS 2005中使用C#Windows应用程序清除Internet Cookies和缓存.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆