websave - Showing download progress

조회 수: 9 (최근 30일)
Neta Stern
Neta Stern 2017년 3월 15일
답변: Taylor 2024년 8월 14일
I am working on a desktop application from which the user can choose certain files to download from the web. I am using websave to download the file, and it's working well, but I want to show the user the progress of the download. Is it possible? If not, can I do it using a different method?
Thank you.
  댓글 수: 4
Rik
Rik 2020년 8월 17일
You will probably need to interface with a command line tool that sends back the percentage.
William Thielicke
William Thielicke 2024년 8월 12일
Maybe this would work with parfeval: Downloading and checking the file size in a loop in parallel...?

댓글을 달려면 로그인하십시오.

답변 (1개)

Taylor
Taylor 2024년 8월 14일
I'm not sure there is a straightforward way to accomplish this beacuse websave does not give you any intermittent updates on the download progress. @William Thielicke suggestion of parfeval could work. You would then call dir at regular intervals to return the size of the file being downloaded and then use waitbar or uiprogressdlg to display a progress bar.

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by