'-- Build the secure password stringFor Each c As Char In "MyPassword" password.AppendChar(c)Next
'-- Set the security login credentialsstartInfo.UserName = "MyWindowsUser"startInfo.Domain = "MYDOMAIN"startInfo.Password = password
'-- Spawn the processprocess = System.Diagnostics.Process.Start(startInfo)
'-- If you want to wait for the process to exit you can wait like thisprocess.WaitForExit()
Now if you want to create isolation levels within your assembly, it gets a lot more complicated. You will have to apply security attributes and configure each client machine that will execute the code. I am obviously not getting too deep here as this can become a really big tutorial in and of itself, but if you have this need, then a web search would probably be your best best as I ams ure that there are probably already some articles out on CodeProject or something along those lines showing how to do this.
If I have an application I wrote that executes under Windows login "generaluser", I now want my application in specific scenarios to write a file to a network folder to which "generaluser" does not have write NTFS permissions. How can I accomplish this? Keith Chisarik