Hi, I'm wanting to open a .txt with notepad from my project, but I want to avoid using cmd.exe [I don't want a console window appearing]
Is that possible?
I've searched around but have only found ways that open with cmd
Hello lostdog,
You could try ShellExecute(NULL, "open", fileName.c_str(), NULL, NULL, SW_SHOWNORMAL);
. I believe you will need the "windows.h" header file.
Andy
As @lastchance stated, you can use system() to open it. However, I would avoid using system() except for the most trivial projects.