Respond_setting.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Security.Permissions;
  5. using System.Windows.Forms;
  6. using System.Diagnostics;
  7. namespace US.Browser.IE
  8. {
  9. /// <summary>
  10. /// 浏览器系统功能区域
  11. /// </summary>
  12. public class Respond_setting
  13. {
  14. /// <summary>
  15. /// 弹出设置
  16. /// </summary>
  17. public void SetProxy()
  18. {
  19. Process _UPRD = new Process();
  20. _UPRD.StartInfo = new ProcessStartInfo("rundll32.exe", "shell32.dll,Control_RunDLL inetcpl.cpl,,0");
  21. _UPRD.Start();
  22. }
  23. /// <summary>
  24. /// 删除缓存(临时文件)
  25. /// </summary>
  26. public void CleanTempFiles()
  27. {
  28. Process _UPRD = new Process();
  29. _UPRD.StartInfo = new ProcessStartInfo("RunDll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 8");
  30. _UPRD.StartInfo.UseShellExecute = false;
  31. _UPRD.StartInfo.RedirectStandardInput = true;
  32. _UPRD.StartInfo.RedirectStandardOutput = true;
  33. _UPRD.StartInfo.RedirectStandardError = true;
  34. _UPRD.StartInfo.CreateNoWindow = true;
  35. _UPRD.Start();
  36. }
  37. }
  38. }