CA50 said:In this case i think that 'notepad.exe' and 'mspaint.exe' must be in that directory where the c-coded exe file will reside.
Its not needed that they be in same dir. Those executables are in the System PATH. You can be in any dir and run those commands.