I'm trying to run the windows shell from my qt program and, from there, run a tftp command ... I'm documenting a bit 'but I do not understand what is wrong. First of all i want to say that the device connected with my computer is correctly responding to plain tftp call. So, i know for sure that the problem is all in this piece of code
Tried
Qprocess process;
process.start("tftp -i 192.168.2.1 get configINPUT.txt");
With no luck
The i tried
QProcess process;
QString program = "cmd.exe";
QStringList arguments = QStringList();
arguments<< "/C";
arguments<< "tftp";
arguments<< "-i";
arguments<< "192.168.2.1";
arguments<< "get";
arguments<< "configINPUT.txt";
bool ret= process.startDetached(program,arguments);
qDebug() << arguments;
qDebug() << ret;
Ret is returning TRUE but i got no files at all from the device
Tried to call tftp directly too with
QProcess process;
QString program = "tftp";
QStringList arguments = QStringList();
arguments<< "/C";
arguments<< "-i";
arguments<< "192.168.2.1";
arguments<< "get";
arguments<< "configINPUT.txt";
bool ret= process.startDetached(program,arguments);
qDebug() << arguments;
qDebug() << ret;
Now ret is FALSE too so i think that is the wrong way to make the system call.. Anyone have some hint to spare? Thanks a lot