Vero009
Vero009

Reputation: 622

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 ?

Upvotes: 3

Views: 2099

Answers (2)

Marco
Marco

Reputation: 57573

You can simply use

Process.Start(your_exe);

Upvotes: 3

Oded
Oded

Reputation: 499002

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

Upvotes: 6

Related Questions