Alright, so I know many people have asked this before. I am trying to make a program that will open other programs when the user enters a certain number. I have used the system() object and the ShellExecute neither have worked for me, it has giving me errors saying that windows cannot find the file, and I typed in the specific location for each program that will need to be opened. All I want to know is how you would do so, either a .pp file or .exe
> given me errors saying that windows cannot find the file
Verify that the correct path was specified.
Does this work for you?
1 2 3 4 5 6 7
#include <cstdlib>
int main()
{
// specify the full path to notepad.exe; modify if the path if it is different on your machine
std::system( "C:\\windows\\notepad.exe" ) ;
}