Click here to Skip to main content
15,851,514 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
is there a way to launch an exe of a program and pass path file? I don't want to do it with command prompt but with an app mfc

What I have tried:

I search on internet but I don't find what I want
Updated 7-Aug-23 2:02am

Share this answer
I have a program that dumps text alot. In parts of the program I use SPAWNLP to open notepad for debugging/viewing. You just give it a path and exec name. you can also add arguments.
Share this answer
Dave Kreskowiak 7-Aug-23 10:24am    
That doesn't explain, at all, how the OP would write the code to launch an external app, like Notepad.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900