#Running an executable via CMD - Qt and CLI

7 messages · Page 1 of 1 (latest)

fallow narwhalBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

arctic ginkgo
#

In batch script it's expectedly simple:

cmd /c C:\test\firstExe.exe A:\test\secondExe.exe
pause

After some messing about:

  • the direction of slashes doesn't matter
  • it doesn't matter if any or all Path(s) is/are inserted in quotation marks
arctic ginkgo
#

actual output

#

expected output
opening test.txt in notepad

#

observation
leaving out the prefix "C:\Windows\system32\cmd.exe /c" doesn't change behaviour

fallow narwhalBOT
#

@arctic ginkgo

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

arctic ginkgo
#

but i was just being an doofus, trying to launch cmd within cmd bigsad