![]() |
|
[.NET] Get default browser path - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Get default browser path (/showthread.php?tid=4952708) |
Get default browser path - DarkMethods - Aug 17, 2015 I did some research around the internet on how to get default browser's path. I found only long codes, sometimes needing whole modules and APIs; so I decided to write my own method, just few lines of code and no APIs needed... Here it's code. Code Function DefaultBrowser() As String* - Aristocles - Aug 17, 2015 Quote:Private Function getDefaultBrowser() As String There you can get the default browser. Then you can loop through the running process and kill the browser. Quote:Dim browser As String http://stackoverflow.com/questions/18995086/finding-the-default-browser-in-vb-net |