Close a web browser from script

4 ビュー (過去 30 日間)
Seth Cottengim
Seth Cottengim 2019 年 12 月 7 日
回答済み: Kritika Bansal 2020 年 1 月 16 日
I'm doing a project where I open a broswer (default browser is chrome) from matlab using...
url = 'www.google.com';
web(url)
That opens Chrome and now if I want to close the browser how would I do that.
For my project I'm opening a different page and pulling data from it but I need to open 60 variations of that page, so I'm looking for a way to not have 60 websites up when the program has finished running. Thank you for the help!!

回答 (1 件)

Kritika Bansal
Kritika Bansal 2020 年 1 月 16 日
Hi,
You can do that by using the following command in MATLAB
!taskkill -f -im chrome.exe

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by