Call an application using System() from another program and input a file

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Call an application using System() from another program and input a file



I have a main file and a secondary file. The secondary file is compiled into an executable that I cannot edit. The secondary file asks for a file name using user input.
In order to run the secondary file from the main file, I am using System("secondary.exe"), which then executes the secondary file an prompts the user for input.
Is there a way to bypass that input and hard-code in a file name.



I tried looking at command line piping and popen but was unable to find an answer.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Keycloak server returning user_not_found error when user is already imported with LDAP

PHP parse/syntax errors; and how to solve them?

How to scale/resize CVPixelBufferRef in objective C, iOS