in reply to 'C:\Program' is not recognized as an internal or external command, operable program or batch file.

system explains about when it invokes the shell ... you want to avoid the shell by using multiple arguments to syste as Loops demonstrates
  • Comment on Re: 'C:\Program' is not recognized as an internal or external command, operable program or batch file.