Geeks With Blogs
finally{} My interactions with .Net and Web development - What's most important is what happens finally{} July 2005 Entries
RunAs utility - this time with Code
Check this code out - System.Diagnostics.ProcessS... myProcess = new System.Diagnostics.ProcessS... myProcess.UserName = "someusername"; //windows usernameSystem.Security.Sec... password = new System.Security.SecureStrin... set value for password here.myProcess.Password = password;myProcess.UseShell... = false;System.Diagnostics.Pr... What the above code does is, it runs the application notepad as the user "someusername". Now that's just ......

Posted On Monday, July 25, 2005 2:38 AM

Copyright © Vinayak | Powered by: