
Your Answer
1 answers
Process.Start(info) 返回的是一个 Process 对象,相关文档在这里。
Process 有几个事件,Exited 事件在进程结束后触发。ErrorDataReceived 在有错误输出时触发,OutputDataRecevied在有正常输出时触发。
还有几个属性,HasExited 检查是否已经结束,ExitCode 获取结束代码,ExitTime 获取结束时间。不过使用后两个属性之前都需要先判断 HasExited,因为如果进程还没结束,获取结束代码和时间都会引发异常。
Hot tools Tags
Hot Questions
What is the idea behind ^= 32, that converts lowercase letters to upper and vice versa?
2026-01-02 21:01:09
Behaviour of increment and decrement operators in Python
2026-01-02 20:43:20
Can I bind an array to an IN() condition in a PDO query?
2026-01-02 20:22:13
SqlBulkCopy from a List<>
2026-01-02 20:01:11
How to securely save username/password (local)?
2026-01-02 19:43:13
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
Douyin level price list 1-75
20416
7
20416
7
wifi shows no ip assigned
13574
4
13574
4
Hot Article
What is the 'basis' of a currency contract? What impact does it have on perpetual contract prices?
2025-12-26
By DDD
How to set up price alerts so you don't miss key entry points?
2026-01-01
By DDD
Tutorial on existence check of nested array values in PHP multidimensional array
2025-12-28
By DDD
How to draw dotted lines in PS How to draw various dotted lines in PS
2025-12-28
By DDD






