How to automate "Save As" dialog box when using "web" command to download from websites?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 30 Nov. 2016
Beantwortet: MathWorks Support Team
am 30 Nov. 2016
I am using the "web" command to navigate to a download URL to download URL. However, when I use the "web" command, The "Save File As" dialog box opens up, asking the user for the name of the file and where they would like to save it. I want to automate this step and not have the "Save File" dialog box open up. How do I do this using MATLAB? Do I need a COM server?
Akzeptierte Antwort
MathWorks Support Team
am 30 Nov. 2016
To automate this, you can use the "websave" command.
As an example,
% download_url is the url you wish to download from
% file_name is the file you want the download to be saved to
% output_filename is the relative location of the file after it has been saved.
>> output_filename = websave(file_name, download_url);
To learn more about the "websave" command, please visit the following documentation link :
https://www.mathworks.com/help/matlab/ref/websave.html
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Downloads finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!