private static void RunDatabaseMaintenace(object state) { ScheduledTaskFactory.log.Info((object)"Database maintenance task is starting."); try { Process.Start(Path.Combine(OrionConfiguration.get_InstallPath(), "Database-Maint.exe"), "-Archive"); ScheduledTaskFactory.log.Info((object)"Database maintenace task started."); SettingsDAL.Set("SWNetPerfMon-Settings-Last Archive", DateTime.UtcNow.ToOADate()); } catch (Exception ex) { ScheduledTaskFactory.log.Error((object)"Error while executing Database-Maint.exe.", ex); } }