Changeset 8964 for trunk/sources/HeuristicLab.Clients.Hive.Slave/3.3
- Timestamp:
- 11/28/12 12:11:42 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.Slave/3.3/Core.cs
r8957 r8964 22 22 using System; 23 23 using System.Diagnostics; 24 using System.IO; 25 using System.Reflection; 24 26 using System.ServiceModel; 25 27 using System.Threading; … … 456 458 t.ContinueWith(c => { 457 459 try { 458 Process.Start(SlaveCore.Properties.Settings.Default.ShutdownCommand); 460 //we assume that *.exe means an executable in the current directory, otherwise it is a command 461 if (SlaveCore.Properties.Settings.Default.ShutdownCommand.EndsWith(".exe")) { 462 string dirName = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); 463 Process.Start(Path.Combine(dirName, SlaveCore.Properties.Settings.Default.ShutdownCommand)); 464 } else { 465 Process.Start(SlaveCore.Properties.Settings.Default.ShutdownCommand); 466 } 459 467 } 460 468 catch (Exception ex) {
Note: See TracChangeset
for help on using the changeset viewer.