记录

调用外部程序的方法1:

//using System.Diagnostics;

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;

 

计算两个时间之间的差 方法2:

System.TimeSpan ts = EndTime.Subtract(dtAmStart);
int intDiffer = ts.Days;
posted @ 2009-03-05 10:50  Lixy  阅读(97)  评论(0)    收藏  举报