http://qs1969.pair.com?node_id=358679

Here's my code:
$str = 'msxsl C:\path\foo.xml C:\path\bar.xsl -o C:\path\output.html'; `$str`;
Now, if I run that with backticks, I get the expected result. The transform happens and there's no error. If I deliberately break it:
$str = 'msxsl C:\path\foo.xml C:\BAD-path\bar.xsl -o C:\path\output.ht +ml'; `$str`;
Now, if I run it, I need to trap the error:
Error occurred while loading document 'C:\BAD-path\bar.xsl'. Code: 0x800c0006 The system cannot locate the object specified.