Alright, back onto what this forum was suppose to be about. I have been getting a lot of help from doom forums, and I got a code to do something with the stdout, but it is in c# . Here is what he gave me.
Process process = new Process(); process.StartInfo.FileName = <path to your x264.exe>; process.StartInfo.Arguments = <command line args you want to pass>; process.EnableRaisingEvents = false; process.StartInfo.UseShellExecute = false; process.StartInfo.CreateNoWindow = false; process.StartInfo.RedirectStandardOutput = false; process.StartInfo.RedirectStandardError = true;bool ok = process.Start();
using (StreamReader reader = process.StandardError) {string line = reader.ReadLine();if( line == null )break;// Interpret the line as you see fit }
I managed to turn the first part into vb.
Dim process = New Process() process.StartInfo.FileName = "C:\Users\Metroidn1f\Desktop\Metroidn1f Encoder v4.2.38.3\Tools\x264\x264.exe" process.StartInfo.Arguments = "x264 --help> ""help.txt""" process.EnableRaisingEvents = False Process.StartInfo.UseShellExecute = False process.StartInfo.CreateNoWindow = False process.StartInfo.RedirectStandardOutput = False process.StartInfo.RedirectStandardError = True process.Start()
I just don't know if I totally got it right. As for the second part, I got this.
Using IO.StreamReader(process.StandardError)String.line = reader.ReadLine()If (line = null) Then break()EndIfEndUsing
But I got this error at the "Using IO.StreamReader(process.StandardError) ". It said "'StreamReader' is a type in 'IO' and cannot be used as an expression."
Does anyone know what I am doing wrong, how to fix this and if I am doing this right?