stillinlife101
Programmer
const string Dellstring = "MarkedForDeletion";
private void RefreshFiles(string Path, Customer[] Cust)
{
DirectoryInfo di = new DirectoryInfo(Path);
FileInfo[] fi = di.GetFiles("cust");
DObject doFilenames = new DObject();
foreach (FileInfo f in fi)
if (new Customer(f.FullName).Name == DelString)
{
doFilenames.AddObject(f.FullName);
}
//Here, I would like to delete the files that have been
//added to the doFilenames list
//How do I force di and fi to unlock the files?
}
private void RefreshFiles(string Path, Customer[] Cust)
{
DirectoryInfo di = new DirectoryInfo(Path);
FileInfo[] fi = di.GetFiles("cust");
DObject doFilenames = new DObject();
foreach (FileInfo f in fi)
if (new Customer(f.FullName).Name == DelString)
{
doFilenames.AddObject(f.FullName);
}
//Here, I would like to delete the files that have been
//added to the doFilenames list
//How do I force di and fi to unlock the files?
}