Save xml file produced by views data export module to a different location I am using "views data export" module. And I am able to download the xml file.

I want to place a button "save to D:\" such that when I click on button it directly get saved to "D:\" drive .

I want to do something like this: if XML path is given

http://localhost/drupal/exhibti-dataexport.xml 


I want to download the file. 

If XML path is given 

http://localhost/drupal/exhibti-dataexport.xml/savetoD


I want to directly save to D drive.

What I observed is when I am giving the path like this also

http://localhost/drupal/exhibti-dataexport.xml/savetoD


the file is getting downloaded.

Not able to understand the views data export module code.

Where should I modify the code in views data export module such that if xml path has arguments It should save the file to D drive.

Any help is appreciated.
You will not be able to save anything automatically expecially to a particular path

Some browsers allow you to remember the action (Save/ Open) for each file type. If the user had chosen to "Remember my Answer", then the browser saves the file automatically. You can not force a similar it on all users using your site.

Regarding the path, it again depends on the browser config. If the user had configured a download directory, some browsers save the file in the download folder by default. Else will ask the user to select the path showing the last saved path. 

If browsers allowed websites to save files directly to d:\ on your machine without your consent at the click of a button, your machine would have been full of stuff that you never intended to download!!!!