Sorry.. Actually I wanted to implement on my board fast. so im searching fastly. I thot of replying you but now im getting partial outputs. So I'm eager to do fast. Now im able to get cmd.exe(wiindows) or terminal.exe(linux).just proc->start("cmd.exe/terminal.exe"). I need to send command to same terminal or command prompt directly from same program or window. I studied full documentation but i didmt suceed in sending commands to it. So I dont no how exactly it happens. I have sent code. QDir i implented as you suggested but it didnt work. Sorry.
Why not run each command seperately? It would be much easier. For example, 'dir' command can be run like:
Qt Code:
QProcess p; if (p.waitForStarted()) { p.waitForFinished(); qDebug() << p.readAllStandardOutput(); }To copy to clipboard, switch view to plain text mode
Bookmarks