I have a full trust form, and I want to run an .exe file from my computer. This works fine but I also want to open another InfoPath form from the server( off Sharepoint). But with the Infopath form on the server I am getting an error that states that my form must be domain level to open files on the domain. Is there a work around for this where I am able to run files on my computer and on the server. My code to run the file on my computer is:
var chartNumber = XDocument.DOM.selectSingleNode("/myGroup/my:field").text;
var shell = new ActiveXObject("WScript.Shell")
var path = "\"C:Program Files\\Folder\\App.exe\" " + chartNumber + " 000";
var oExec = shell.run(path);
Thanks for your help.