aguayro
23rd July 2015, 13:07
I'm trying to pass an argument to an exe file with QProcess in Windows:
procMame->start( tinfo.absoluteFilePath(), QStringList() << "-listxml" <<">" << "mamelist.xml");
or
procMame->start( tinfo.absoluteFilePath(), QStringList() << "-listxml>" <<" "mamelist.xml");
or
procMame->start( tinfo.absoluteFilePath(), QStringList() << "-listxml" << ">mamelist.xml");
or
procMame->start( tinfo.absoluteFilePath(), QStringList() << "-listxml>mamelist.xml");
or
procMame->start( tinfo.absoluteFilePath(), QStringList() << "-listxml > mamelist.xml");
Nothing works, but it does work manuall via CMD console...
With QProcess the command is never recognized (Command not found or takes ">" as a game name not as a output character for saving the xml file).
What i'm doing wrong?
procMame->start( tinfo.absoluteFilePath(), QStringList() << "-listxml" <<">" << "mamelist.xml");
or
procMame->start( tinfo.absoluteFilePath(), QStringList() << "-listxml>" <<" "mamelist.xml");
or
procMame->start( tinfo.absoluteFilePath(), QStringList() << "-listxml" << ">mamelist.xml");
or
procMame->start( tinfo.absoluteFilePath(), QStringList() << "-listxml>mamelist.xml");
or
procMame->start( tinfo.absoluteFilePath(), QStringList() << "-listxml > mamelist.xml");
Nothing works, but it does work manuall via CMD console...
With QProcess the command is never recognized (Command not found or takes ">" as a game name not as a output character for saving the xml file).
What i'm doing wrong?