Hi, i want to delete a file present in directory on the server. I have tried following code but code inside the file.exist never runs. It always skips it showing me that file does not exist. But file is present. can smone please help me. Thanx in advance
string filename = "Template\\copy.jpg";
if(System.IO.File.Exists(filename))
{
System.IO.File.Delete(filename);
}