How to start a process under current User?

I want to run a EXE file under current user in windows XP. I want to do that ProcessStartInfo class and Process.Start() method.

In current user there is no password.

so how can i do that ?


Process.Start will execute under the current account by default. You do not have to provide credentials for that to happen.


你可以简单地使用

Process.Start(your_exe);
链接地址: http://www.djcxy.com/p/61108.html

上一篇: 如何检测当前记录的进程是否正在运行

下一篇: 如何在当前用户下启动一个进程?