Batch - Default Browser?

前端 未结 8 1127
北荒
北荒 2021-02-12 16:09

Is there a way for using a batch file to find the default browser on my computer?

8条回答
  •  礼貌的吻别
    2021-02-12 16:22

    If you're looking for a Windows .bat solution, this should work on Windows 2000 and later:

    reg QUERY HKEY_CLASSES_ROOT\htmlfile\shell\open\command /ve
    

    Result (on my Windows machine)

    HKEY_CLASSES_ROOT\htmlfile\shell\open\command
    (Default)    REG_SZ    "C:\Program Files (x86)\Internet Explorer\iexplore.exe" -nohome

    See the REG.EXE help for more information:

    REG /?
    

提交回复
热议问题