Article ID: 823436 - View products that this article applies to.
When you use the Open method for the ExternalApplication object in Microsoft Office InfoPath 2003, at run time you receive the following error message:
Error: InfoPath cannot open the following test file: filename.xml. Access is denied.
This problem occurs because of an InfoPath security check. You receive this error if the form template is stored on a network share instead of on your local computer.
To work around this problem, you can use the Microsoft Windows Script Host component (WScript.shell) to open the form programmatically. This workaround is described in more detail in the "More Information" section.
Microsoft has confirmed that this is a bug in Microsoft Office InfoPath 2003.
Steps to Reproduce the Problem
Now when you run the script, InfoPath opens Testform.xml without error.