Saturday, July 19th, 2008

File.Delete Command

Here is an example on how to delete files in the file sytem:-

public static void DeleteFile(string FilePath)
{
try
{
FileInfo TheFile = new FileInfo(HttpContext.Current.Server.MapPath(FilePath));
[...]

|
No Comments » - Posted in CSharp Commands | by admin