I want to open a file(.exe) at client side which is placed on public network. I can use impersonation but i am not findin开发者_StackOverflowg any way?
Use the Process class with ProcessStartInfo and set the UserName and Password before starting it.
ProcessStartInfo startInfo = new ProcessStartInfo("Path to exe");
startInfo.UserName = "the user to impersonate";
startInfo.Password = "the password in a SecureString";
Process.Start(startInfo);
加载中,请稍侯......
精彩评论