M
mcw.willart
Hi,
I notice some strange behaviour with Process.start; when I start an
mmc-console,
e.g. Process.Start("c:\\tools\\AdminConsole.msc"); everything works
fine, but when I try to start it with the following code (using a
username and password) I get "The specified executable is not a valid
Win32 application".
ProcessStartInfo myProcess = new ProcessStartInfo("AdminConsole.msc");
myProcess.UserName = strUserName;
myProcess.Password = password;
myProcess.Domain = "<domain>";
myProcess.FileName = "AdminConsole.msc";
myProcess.UseShellExecute = false;
Process.Start(myProcess);
Anyone any idea?
Greetings,
Mario
I notice some strange behaviour with Process.start; when I start an
mmc-console,
e.g. Process.Start("c:\\tools\\AdminConsole.msc"); everything works
fine, but when I try to start it with the following code (using a
username and password) I get "The specified executable is not a valid
Win32 application".
ProcessStartInfo myProcess = new ProcessStartInfo("AdminConsole.msc");
myProcess.UserName = strUserName;
myProcess.Password = password;
myProcess.Domain = "<domain>";
myProcess.FileName = "AdminConsole.msc";
myProcess.UseShellExecute = false;
Process.Start(myProcess);
Anyone any idea?
Greetings,
Mario