i am writing this utilitie for set quota, and it work fine, i am using the processStartInfo
the question is went i run the application it set the quota but this is a black screen that the dirquota is running in, how can i my that screen hide or something. i setup everything right , think. also i am running under a another context.
qta.RedirectStandardInput = true;
qta.RedirectStandardError = true;
qta.RedirectStandardOutput = true;
qta.UseShellExecute = false;
qta.CreateNoWindow = false;
Loading
linsteadPosted Apr 22, 2008, 9:06 AM
qta.RedirectStandardInput = true;
qta.RedirectStandardError = true;
qta.RedirectStandardOutput = true;
qta.UseShellExecute = false;
qta.CreateNoWindow = false; //i also try true didn't work
qta.WindowStyle = ProcessWindowStyle.Hidden;
qta.Domain = Environment.UserDomainName;
System.Security.SecureString setsecurepassword = new System.Security.SecureString();
qta.UserName = "test";
string pwd = "test";
char[] chars = pwd.ToCharArray();
int i = 0;
for (i = 0; i < chars.Length; i++)
{
setsecurepassword.AppendChar(chars[i]);
}
qta.Password = setsecurepassword;
Process proc = new Process();
proc.StartInfo = qta;
proc.Start();
proc.WaitForExit();
AlanPosted Apr 21, 2008, 4:50 PM
qta.WindowStyle = ProcessWindowStyle.Hidden;