Did you read the FULL description of the cDIPath parameter?
(optional) A device-independent path to an arbitrary file on the user's hard drive.
This path may be absolute or relative to the current document.
If not specified, the user is presented with the File Open dialog to locate the file.
If the cDIPath parameter is specified, this method can only be executed in privileged
context, during a batch or console event (or when the document is certified with a
I am using a trusted function app.trustedFunction
In your opinion having the user select the file is it the only possibility?
Because I am interested in having it get there automatically.
I could not get this to work in X. But in XI I used the security(enhanced) settings and made privilages for my files. And it worked fine.