| | |
| | | |
| | | string cmd = string.Format("\"C:\\Program Files\\Skyline\\TerraBuilder\\TerraBuilder.exe\" -script \"{0}\"", js); // -DisablePrint |
| | | ReloadTB(); |
| | | err = Tools.ExecCmd(cmd, false, false); |
| | | err = Tools.ExecCmdForWin(new List<string> { cmd }); |
| | | isBusy = false; |
| | | |
| | | return File.Exists(MptPath) ? MoveMpt(MptPath, sourcePath) : null; |
| | |
| | | /// </summary> |
| | | private static void MoveFilesToTemp(string sourcePath, string targetPath) |
| | | { |
| | | LogOut.Info("TB.移动文件 -> " + sourcePath); |
| | | MoveFolder(Path.Combine(sourcePath, "数字正射影像图"), Path.Combine(targetPath, "img")); |
| | | MoveFolder(Path.Combine(sourcePath, "数字高程模型"), Path.Combine(targetPath, "dem")); |
| | | MoveFolder(Path.Combine(sourcePath, "中线裁剪范围"), Path.Combine(targetPath, "shp")); |
| | |
| | | //list.Add("taskkill /f /t /im TBFuser.exe"); |
| | | //list.Add("start /d \"C:\\Program Files\\Skyline\\TerraBuilder Fuser\" TBFuser.exe /b"); |
| | | |
| | | Tools.ExecCmd(list, false); |
| | | Tools.ExecCmd(list); |
| | | } |
| | | |
| | | /// <summary> |