Hi,
I was trying the following
Process wmaProcess = new Process();
string filePath, musicPath, xmlFile;
// contains the path for the program to be executed
filePath = Application.StartupPath+@"\id3tag.exe";
// contains the path for the music file
musicPath = this.musicPath + "\\" + this.musicName;
wmaProcess.StartInfo.FileName = filePath;
wmaProcess.StartInfo.Arguments = musicPath+" show";
wmaProcess.StartInfo.CreateNoWindow = true;
wmaProcess.StartInfo.UseShellExecute = false;
wmaProcess.Start();
wmaProcess.WaitForExit();
xmlFile = wmaProcess.StandardOutput.ReadToEnd();
My program is failing on the last line. It is giving me the following
error -
An unhandled exception of type 'System.InvalidOperationException'
occurred in system.dll
Additional information: StandardError has not been redirected.
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!