Listar y luego borrar archivos segun sus nombres
tema enviado por gabriel en ASP.NET
tema iniciado el 26/11/2007
Necesito listar los archivos segun sus nombres y luego borrarlo.... son unos pdf
esto es lo que tengo
Gracias anticipadamente
string parte;
if (Directory.GetFiles(Server.MapPath("App_data/"), "planilla_Emision_auto_*.pdf").Length > 0)
{
parte = "planilla_Emision_auto_" + DateTime.Now.Year.ToString() + "_" + DateTime.Now.Month.ToString() + "_" + DateTime.Now.Day.ToString() + "*.pdf";
if (Directory.GetFiles("Path", parte).Length > 0)
{
}
else
{
//System.IO.File.Delete(Server.MapPath());
}