I want to do two steps in my c++ program using system().
- open the folder system("cd /d ...")
- run another program.exe
However, it seems like when I run step2, the folder opened in step1 is already closed. What can I do to make sure that the folder won't be closed, so that I can use another cmd call to run .exe?
Thanks!