Adding Using statement, The Backup and Restore BAT files are now build with the database name you specified in the settings

This commit is contained in:
2012-02-14 15:45:25 +00:00
parent 21a5b9a05d
commit 671c3aa137
2 changed files with 23 additions and 18 deletions

View File

@@ -108,8 +108,12 @@ namespace DataLoader
//Format.UpdateFormats(_FmtAllPath, _GenmacAllPath);
Format.UpdateFormats(frmMain.MySettings.FormatFolder, frmMain.MySettings.GenMacFolder);
Format baseFormat = Format.Get(1);
sysFolder = Folder.MakeFolder(null, dbConn, "VEPROMS", "VEPROMS", "VEPROMS", baseFormat, d.InnerXml, DateTime.Now, "Migration");
//Format baseFormat = Format.Get(1);
//sysFolder = Folder.MakeFolder(null, dbConn, "VEPROMS", "VEPROMS", "VEPROMS", baseFormat, d.InnerXml, DateTime.Now, "Migration");
using (Format baseFormat = Format.Get(1))
{
sysFolder = Folder.MakeFolder(null, dbConn, "VEPROMS", "VEPROMS", "VEPROMS", baseFormat, d.InnerXml, DateTime.Now, "Migration");
}
// This is to test the vln Libraries
List<Folder> lfldr = vlnDataPathFolders();