2007年8月21日

c#判断程序是否运行

摘要: string name = "aaa";//程序进程名称int ProgressCount = 0123456;//判断进程是否运行的标识Process[] prc = Process.GetProcesses();foreach(Process pr in prc)//遍历整个进程{if (name == pr.ProcessName)//如果进程存在{ ProgressCount = 0;/... 阅读全文

posted @ 2007-08-21 01:32 什么的外 阅读(1552) 评论(0) 推荐(0) 编辑

c#调用外部程序

摘要: 命名空间是using System.Diagnostics;程序源码为:privater void StaartForm(){ Process MyProcess = new Process();MyProcess.StartInfo.FileName = "d:/aaa.exe";//外部程序路径MyProcess.StartInfo.Verb = "Open";MyProcess.StartI... 阅读全文

posted @ 2007-08-21 01:21 什么的外 阅读(932) 评论(0) 推荐(0) 编辑

导航