| | |
| | | { |
| | | Process p = new Process(); |
| | | p.StartInfo.FileName = path; |
| | | p.StartInfo.Arguments = args; |
| | | if (!string.IsNullOrEmpty(args)) p.StartInfo.Arguments = args; |
| | | p.StartInfo.CreateNoWindow = noWindow; |
| | | p.StartInfo.UseShellExecute = false; |
| | | p.Start(); |
| | |
| | | |
| | | private void InvokeOsgbLab() |
| | | { |
| | | // |
| | | ExecCmd(new List<string> { "taskkill /f /t /im OSGBLab.exe" }); |
| | | RunExe(ConfigurationManager.AppSettings["osgblabPath"], null, false); |
| | | } |
| | | #endregion |
| | | } |
| | |
| | | <add key="testFly" value="E:\data\opting\2022.fly"/> |
| | | <!--<add key="tePath" value="C:\Program Files\Skyline\TerraExplorer Pro"/>--> |
| | | <add key="tePath" value="C:\Program Files\SmartEarth\TerraExplorer Pro"/> |
| | | <add key="osgblabPath" value="C:\Program Files\OSGBLab\Trial\OSGBLab.exe"/> |
| | | </appSettings> |
| | | <startup> |
| | | <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> |