Tag c#

c# delete temporary internet files ignore index.dat

How can you delete temporary internet files and ignore index.dat in c# ? (this refers to C:\Documents and Settings\%username%\Local Settings\Temporary Internet Files\ ) System.Diagnostics.Process.Start(“rundll32.exe”, “InetCpl.cpl,ClearMyTracksByProcess 4351”);  // Delete All – Also delete files and settings stored by add-ons parameters that can…

Send Email c#

Here’s how to send some email in c# using System.Net.Mail; using System.Net.Mime; using System.Net; ///place in a sub-routine or button try { MailMessage mail = new MailMessage(); SmtpClient client = new SmtpClient(“smtp.example.com”); MailMessage message = new MailMessage(“[email protected]”, “[email protected]”); // ,…