How can you get the path an InfoPath 2003 Form (XSN) is saved under in VBScript/JScript? Is there any Property like ThisWorkbook.Path or DB.Name in MS Access/VBA.
My setup is as follows: In a local folder I have one InfoPath Form (XSN file) and 4 PDF files. The form contains 4 buttons which must open one of the PDFs when clicked on. I wrote a code for this which works fine with the PDF filepaths hardcoded. But as soon as I move the form and the PDFs to another folder, this won't work anymore.
So I would prefer to build up the PDF filepaths in the code, based on the folder where my form lies. But I found no way how to get this folder in the code.
All I was able to get is the network folder where the original of my form is stored and published. But as the form is mostly used offline this doesn't really help me.