How to hide web browser while using web function

1 view (last 30 days)
dudi lubton
dudi lubton on 29 Dec 2020
Edited: dudi lubton on 29 Dec 2020
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

Answers (1)

Ameer Hamza
Ameer Hamza on 29 Dec 2020
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 Comments
dudi lubton
dudi lubton on 29 Dec 2020
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

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!