how can one specify a directory that websave saves files?
7 次查看(过去 30 天)
显示 更早的评论
I want to specify a directory that websave saves files. I checked https://www.mathworks.com/help/matlab/ref/websave.html. https://www.mathworks.com/matlabcentral/answers/581399-how-to-have-the-matlab-web-browser-automatically-save-a-downloaded-file-to-a-specified-directory-wit says to add the directory name to the file name. But I would hope to change the directory outside websave, Please advise.
0 个评论
采纳的回答
Jan
2022-3-12
Using full path names is the reliable and efficient solution:
Folder = 'C:\Your\Favorite\Folder';
File = 'AsYouWant.html';
URL = 'https://www.mathworks.com/matlabcentral/answers/1670074';
websave(fullfile(Folder, File), URL)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!