|REG QUERY HKEY_CLASSES_ROOT\http\shell\open\command /ve> DefaultBrowser.dat|
Which writes this to "DegaultBrowser.dat":
(Standard) REG_SZ "C:\Firefox\Firefox.exe" -osint -url "%1"
How would I extract only the file name of the "default browser" name? (in this case "Firefox.exe") I couldn't make a FOR loop to extract it (though I am not very good with foor loops either). The reason I don't go by the findstr method is that the .exe name changes depending on what is the default browser, and there are like tons of different browsers out there.
message edited by RainBawZ