Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

How to start a qprocess for opening files with a batch file?

$
0
0
Hi everyone! I am trying to open a qprocess that must open a .bat file that will compile another file. This is what I tried: QProcess p; p.start("C:/beez.bat", QStringList() << "E:/files/test.sma"); p.waitForFinished(); I also tried this: QProcess::startDetached("C:/beez.bat E:/files/test.sma"); When I execute this code, it just open the batch file without opening the .sma file (an extension I created). I can modify the sequence, I have to use the .bat file to opening it. Can you help me? Best Regards iRobot.

Viewing all articles
Browse latest Browse all 18427

Trending Articles