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;
How to work with processStartInfo to send quota in .net
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

AlanRank #669 · 3.6K reputationPosted Apr 21, 2008, 12:50 PM EDT
qta.WindowStyle = ProcessWindowStyle.Hidden;
linstead3 reputationPosted Apr 22, 2008, 5:06 AM EDT
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();