Thank you for the post.
Please review the screenshot below and KB7035:
Thanks for replay.
Its working if I use Get(DocumentPath)...
But I also want to export data in "d:\files" but its not working
Due to the limitations of Server Side scripts, it is sometimes necessary to set up a "robot" FileMaker file that connects to the database and performs a script in the hosted file. Since this is a "client side" action, the limitations of Server Side scripts do not apply.
An OS based task scheduler such as Windows Scheduled Tasks can open such a robot file and File Options on that file can be set to automatically run the robot's script when the file opens. The file can even open the hosted file with a specific password.