Hi,

I am using QProcess for executing an executable and the syntax goes like this,

QString cmd = " some.exe"
QStringList args;

args << " < " << "./input.txt" << " > " << "./output.txt"

QProcess* proc = new QProcess( this );

proc.start( cmd , args );
proc.waitForStarted();

As per the above code the exe has to run taking " args " as argument list. since i have provided the input to "some.exe" using redirection operator it should not ask user the input, but it is not happening as expected.

but if i provide the same commands in .bat file and if i give that bat file as input for QProcess it works as expected.

Can anyone throw light on this , why exactly it is not able to run ?

Thanks in advance,
Nikhil