惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
IT之家
IT之家
B
Blog RSS Feed
罗磊的独立博客
GbyAI
GbyAI
博客园 - Franky
Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
博客园 - 聂微东
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
U
Unit 42
博客园 - 叶小钗
Jina AI
Jina AI
MyScale Blog
MyScale Blog
雷峰网
雷峰网
B
Blog
Hugging Face - Blog
Hugging Face - Blog
Blog — PlanetScale
Blog — PlanetScale
Recent Announcements
Recent Announcements
腾讯CDC
酷 壳 – CoolShell
酷 壳 – CoolShell

博客园 - 左佩玉

通过了 70-316 考试 .NET SDK 工具 线程 程序配置 程序集 全局化和本地化 实现帮助 可访问性设计 访问和调用外部组件 实现打印 自定义控件 使用 GDI+ 在ADO.net 中使用xml 绑定、查看和筛选数据 ADO.net 处理和抛出异常 使用Debug和Trace 测试和调试 继承 System.Collections.CollectionBase 创建一个强类型集合类
进程
左佩玉 · 2005-08-26 · via 博客园 - 左佩玉

System.Diagnostics.Process
列举当前所有进程
Process[] processes = Process.GetProcesses();
foreach(Process p in Processes)
{
    //....
}

本地进程
Process[] processes = Process.GetProcesses(".") //远程:指定机器名"MyServer"

启动新进程
Process p = Process.Start("C:\\WINNT\\NOTEPAD.EXE");

当前进程
Process.GetProcesses(".");

设置启动信息
ProcessStartInfo si = new ProcessStartInfo();
si.FileName = "C:\\winnt\\notepad.exe";
si.Arguments = "D:\\Readme.txt";
si.UseShellExecute = True;
si.ErrorDialog = True;
si.WorkingDirectory = "D:\\";
si.Verb = "Edit";
Process p = Process.Start(si);