有没有办法从C#WPF应用程序刷新DNS缓存? (在XP,Vista,Win7) [英] Is there a way to flush the DNS cache from a C# WPF app? (on XP, Vista, Win7)

查看:202
本文介绍了有没有办法从C#WPF应用程序刷新DNS缓存? (在XP,Vista,Win7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从C#WPF应用程序刷新DNS缓存?该应用程序将在XP,Vista或Windows 7上运行。

解决方案

这可能是穷人的解决方案,但是您可以使用 System.Diagnostics.Process 启动 ipconfig / flushdns


Is there a way to flush the DNS cache from a C# WPF app? The application would be running on either XP, Vista, or Windows 7.

解决方案

This may be the poor-man's solution, but you could use System.Diagnostics.Process to launch ipconfig /flushdns.

这篇关于有没有办法从C#WPF应用程序刷新DNS缓存? (在XP,Vista,Win7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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