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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user