The following dos command creates a text file of all active computers
in the domain:
net view > c:\test.txt
However the following code does not create the text file. Any idea why
this is? The command executes, but it doesn't create the file.
ProcessStartInfo qOptions = new ProcessStartInfo("net",
"view > c:\\test.txt");
qOptions.UseShellExecute = true;
qOptions.WindowStyle = ProcessWindowStyle.Minimized;
DOS = Process.Start(qOptions);
DOS.WaitForExit();