in reply to correct path

Put double quotes around the path — that's right: as part of the string.
system('"c:\\program files\\my dir\\myfile.exe"');