WPF General

double dScreenWid = System.Windows.SystemParameters.PrimaryScreenWidth;
double dScreenHei = System.Windows.SystemParameters.PrimaryScreenHeight;

this.Left = dScreenWid - 200;
this.Top = dScreenHei - 200;

System.Diagnostics.Process.Start(@"C:Program FilesMicrosoft OfficeOffice14EXCEL.EXE");    //调用该命令,在程序启动时打开Excel程序

原文地址:https://www.cnblogs.com/waterair/p/6909142.html