Made a few fixes to the Text Search Function

Created a Stored Procedure to move Procedures, Sections and Steps
Added set files to READ/WRITE if they are READ ONLY.
This commit is contained in:
Rich
2013-03-12 14:59:13 +00:00
parent 661bf3887d
commit 23ad3d8d7b
2 changed files with 389 additions and 1 deletions

View File

@@ -522,7 +522,10 @@ namespace fmtxml
di = di.GetDirectories("fmtall")[0];
FileInfo[] fis = di.GetFiles("*.xml");
foreach (FileInfo fi in fis)
{
if (fi.IsReadOnly) fi.IsReadOnly = false;
fi.Delete();
}
}
private void btnBrowseFmt_Click(object sender, EventArgs e)
{
@@ -559,7 +562,11 @@ namespace fmtxml
// delete current svg's
DirectoryInfo disvg = new DirectoryInfo(tbResultPath.Text + @"\genmacall"); //(@"C:\development\proms.net\genmac.xml");
FileInfo[] fissvg = disvg.GetFiles("*.svg");
foreach (FileInfo fi in fissvg) fi.Delete();
foreach (FileInfo fi in fissvg)
{
if (fi.IsReadOnly) fi.IsReadOnly = false;
fi.Delete();
}
DirectoryInfo di = new DirectoryInfo(tbFmtPath.Text);
FileInfo[] fis = di.GetFiles("*.rtf");