Corrected code to delete INF files. These contain invalid Index paths

Added TextBox and Property to Skip Procedures and speed-up debugging
Added TextBox and Property to Skip Processing Procedures and speed-up debugging
Removed duplicate entry
Added Code to Skip Processing Procedures and speed-up debugging
Changed code to use entire (16 Character) ROID to get the Multiple Return Values
This commit is contained in:
Rich
2011-01-12 21:28:33 +00:00
parent 37ffd45792
commit 54a306f114
6 changed files with 98 additions and 52 deletions

View File

@@ -43,8 +43,7 @@ namespace DataLoader
{
// JSJ 02/10/2010 - Remove all the .INF files before proceeding to convert.
// The INF files contain a path to a corresponding NDX file - had data with bat NDX path
if (File.Exists(pth + @"\*.inf"))
File.Delete(pth + @"\*.inf");
DeleteINFFiles(pth);
_OutTran = new OutsideTransition(cn);
MigrateROFST(pth, docver);
// Migrate library documents
@@ -90,6 +89,13 @@ namespace DataLoader
}
return TimeSpan.FromTicks(lTime);
}
private void DeleteINFFiles(string pth)
{
DirectoryInfo di = new DirectoryInfo(pth);
FileInfo [] myFiles = di.GetFiles("*.INF");
foreach (FileInfo myFile in myFiles)
myFile.Delete();
}
private VEPROMS.CSLA.Library.VersionTypeEnum DocVersionType(string s)
{
if (s.EndsWith("approved")) return VEPROMS.CSLA.Library.VersionTypeEnum.Approved;