Expand|Select|Wrap|Line Numbers
- ProcessStartInfo procStartInfo = new System.Diagnostics.ProcessStartInfo("cmd", @"/c set path=%programfiles%\Microsoft Visual Studio\Common\MSDev98\Bin");
- procStartInfo.RedirectStandardOutput = true;
- procStartInfo.UseShellExecute = false;
- System.Diagnostics.Process proc = new System.Diagnostics.Process();
- proc.StartInfo = procStartInfo;
- proc.Start();
- proc.WaitForExit();
- procStartInfo = new System.Diagnostics.ProcessStartInfo("cmd", @"/c MSDEV C:\Shared\Source\Binaries\Project\Project.dsp /MAKE /REBUILD >> compilerr.txt");
- proc.StartInfo = procStartInfo;
- procStartInfo.RedirectStandardOutput = true;
- procStartInfo.UseShellExecute =false;
- proc.Start();
'proc.ExitCode' threw an exception of type 'System.InvalidOperationException'
and for the msdev command :
'proc.BasePriority' threw an exception of type 'System.InvalidOperationException'
Any idea where i could be going wrong ?
Thanks a lot ,
Rhitam