Passing/giving commands to CMD through Qt GUI
问题 What I'm trying to achieve (And struggling with) is basically passing commands to CMD through my QT Mainwindow application. I would like to have my code, first run CMD (preferably hidden). I used here QProcess like this: (in my Mainwindow.cpp file) QString exePath = "C:/Windows/System32/cmd.exe"; QProcess pro; pro.startDetached(exePath); pro.waitForStarted(); this question helped me a lot However, what this answer/question lacks is actual help on "appending" commands to CMD (not sure if this