In the documentation you will note that the cPath parameter for exportAsXFDF allows you to specify a path and filename to save to.
Thanks. I got it.
Hi, i am in need of the same requirement; could you please share me the script?
Thanks in advance,
There are couple of security restrictions you will have to deal with.
See the following articles by Thom Parker: