17,740
社区成员
发帖
与我相关
我的任务
分享
Process p = new Process();
p.StartInfo.FileName = “D:\\程序B.exe";
p.StartInfo.WorkingDirectory = "D:\\";
p.Start();
ChannelFactory<IRefreshContract> l_factory =
new ChannelFactory<IRefreshContract> (
new NetNamedPipeBinding(),
new EndpointAddress("net.pipe://localhost/changeLastTime"));
AdataupUI_RefreshContract.IRefreshContract l_Service = l_factory.CreateChannel();
string datetimenow = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.ff");
l_Service.RefreshLastScanTime(datetimenow);