Author: FredyC | Posted on: 5/30/2008 6:58:00 AM | Views : 276


Hi. I feel completely lost, because i cannot resolve this.



using (Process p = new Process())
{
p.StartInfo = new ProcessStartInfo("dummybinary.exe");
p.StartInfo.CreateNoWindow = true;
p.StartInfo.UseShellExecute = false;
p.StartInfo.UserName = _userName;
p.StartInfo.Domain = _domain;

p.StartInfo.Password = new System.Security.SecureString();
foreach (char c in _password)
p.StartInfo.Password.AppendChar(c);
p.StartInfo.Password.MakeReadOnly();
try
{
p.Start();
p.WaitForExit();
}
catch
{ ...error ...

Go to the complete details ...