in reply to [Have solution now but am still puzzled] Why can't I give system the same command I've been giving to exec?

The problem is with $command. Try
system 'cmd.exe /c', $command;
If that doesn't work you'll have to debug $command.
  • Comment on Re: Why can't I give system the same command I've been giving to exec?
  • Download Code