How to hide web browser while using web function

조회 수: 3 (최근 30일)
dudi lubton
dudi lubton 2020년 12월 29일
편집: dudi lubton 2020년 12월 29일
Hi,
I download real-time data through the web from an excel file each 5 seconds (by web function)
Is it possible to suppress the opening of the HTML page ?
Thanks
Dudi

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 12월 29일
Which function are you using to download the data? You can use websave(): https://www.mathworks.com/help/releases/R2020b/matlab/ref/websave.html, which downloads the data without opening any browser window.
  댓글 수: 2
dudi lubton
dudi lubton 2020년 12월 29일
편집: dudi lubton 2020년 12월 29일
Thanks you for your answer.
I used in web function.
I tried to use it, but I'm not sure it's good in my case.
I need to download an excel file from an HTML page.
If you think it is possible I would like for an example .
Thanks !
dudi lubton
dudi lubton 2020년 12월 29일
편집: dudi lubton 2020년 12월 29일
In general, I need just syntax to hide it :
system(strcat('cmd.exe /c rundll32 url.dll,FileProtocolHandler "', html_file, '" '));
OR
dos(strcat('cmd.exe /c rundll32 url.dll,FileProtocolHandler "', html_file, '" '));
(html_file = Direct link to Excel fileׁ)
It's an internal code line of web function

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by