Hey Guys,

I have an problem with one program that I am developing. My issue is this.
I have one file bat with several commands inside. And this file bat HAVE TO run with Console2(VS2008 Prompt), is not allowed run with cmd.exe.

Then, I want develop an program with C#, that call Console2 and after that call the file bat, to run the file bat inside of the Console2.

My problem is that my program in C# get call the console2, but don´t get call the file bat to run with Console2.

What is happen with my program, anyone can help me.

Following one piece of my code

Process proc = new Process();
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.RedirectStandardOutput = true;

proc.StartInfo.FileName = "C:\\Program Files\\console2\\console.exe";
proc.StartInfo.Arguments = "teste.bat";
proc.Start();
proc.WaitForExit();


Thanks