记录
调用外部程序的方法1:
//using System.Diagnostics;
Process process = new Process();
process.StartInfo.FileName = "iexplore.exe";
process.StartInfo.Arguments = "http://lixyvip.cnblogs.com";
process.Start();
Process process = new Process();
process.StartInfo.FileName = "iexplore.exe";
process.StartInfo.Arguments = "http://lixyvip.cnblogs.com";
process.Start();
调用外部程序的方法2:
System.Diagnostics.Process.Start("iexplore.exe", "http://lixyvip.cnblogs.com");
计算两个时间之间的差 方法1:
System.TimeSpan tsDiffer = EndTime.Date - StartTime.Date;
int intDiffer = tsDiffer.Days;
int intDiffer = tsDiffer.Days;
计算两个时间之间的差 方法2:
System.TimeSpan ts = EndTime.Subtract(dtAmStart);
int intDiffer = ts.Days;
int intDiffer = ts.Days;
浙公网安备 33010602011771号