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

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

问题描述

有没有办法从 C# WPF 应用程序中刷新 DNS 缓存?该应用程序可以在 XP、Vista 或 Windows 7 上运行.

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.

推荐答案

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

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天全站免登陆