TYPE SOMEFILENAME.TXT>PRN
i.e. the dos print command.
i have come across some code which i have tried but does not work. i am putting the code below:
Expand|Select|Wrap|Line Numbers
- Process proc = new Process();
- proc.StartInfo.UseShellExecute = false;
- proc.StartInfo.FileName = "cmd";
- proc.StartInfo.Arguments = "c:\\MCX_CONTRACT\\scrip.txt>prn";
- proc.StartInfo.RedirectStandardOutput = true;
- proc.Start();
- proc.WaitForExit();