当需要在WPF程序启动时,启动另一外部程序(.exe程序)时,可以按照下面的例子来: C#后台代码如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; u
private function callTest(event: Event): void{callExe("d:/a.exe");callBat("d:/a.bat");} private function callExe(extUrl: String): void{//使用静态属性 NativeApplication.nativeApplication 获取应用程序的 NativeApplication 实例//指定在关闭所有窗口后是否应自动终止应用程序. Na