在我的Web浏览器隐藏模式下删除缓存或Cookies

时间:2018-12-29 12:37:10

标签: .net vb.net visual-studio cookies webbrowser-control

但它仍显示删除过程。

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    'Delete Cookies in my Web browser Hiding mode

    Dim prc As New System.Diagnostics.Process
    Dim psi As New System.Diagnostics.ProcessStartInfo("Rundll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 2")
    With psi
        .WorkingDirectory = Environment.GetEnvironmentVariable("SystemRoot")
        .WindowStyle = ProcessWindowStyle.Hidden
        .CreateNoWindow = True
        .UseShellExecute = False
    End With

    prc.StartInfo = psi
    prc.Start()

End Sub

我可以启动该论坛并使用隐藏模式删除现金吗?

1 个答案:

答案 0 :(得分:0)

您的代码准确工作正常,但是问题是,无法隐藏Rundll32.exe