{"id":2850,"date":"2021-10-29T08:40:39","date_gmt":"2021-10-29T08:40:39","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=2850"},"modified":"2021-10-29T08:41:18","modified_gmt":"2021-10-29T08:41:18","slug":"check-default-internet-browser-with-batch-file","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/check-default-internet-browser-with-batch-file\/29583.html","title":{"rendered":"Check Default Internet Browser With Batch File?"},"content":{"rendered":"<p>Is it possible to create a batch file that can check which internet browser is the default one? I am creating a script that exits once the web browser .exe file is terminated, though the process name is different from each browser. I am using this command to check if the process is running:<\/p>\n<p>tasklist \/nh \/fi &#8220;imagename eq !defaultBrowser!&#8221; | find \/i &#8220;!defaultBrowser!&#8221; &gt; nul<br \/>\nif %ERRORLEVEL%==1 (<br \/>\nEcho Process is not running<br \/>\n)<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":3},"question-category":[55],"question_tags":[],"class_list":["post-2850","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/2850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=2850"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=2850"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=2850"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=2850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}