返回列表 发帖

[问题求助] 如何使用命令行方式设置世界之窗为默认浏览器?

因为是网吧,每次重起以后,打开世界之窗都要提示是否设置为默认浏览器。
想在不取消还原的基础上,设置世界之窗为默认浏览器。
有没有这个参数可以设置?

自己解决了

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.shtm]
@="htmlfile"

[HKEY_CLASSES_ROOT\file\shell]
@="TheWorld"

[HKEY_CLASSES_ROOT\file\shell\open\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_CLASSES_ROOT\file\shell\TheWorld\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_CLASSES_ROOT\ftp\shell]
@="TheWorld"

[HKEY_CLASSES_ROOT\ftp\shell\open\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_CLASSES_ROOT\ftp\shell\TheWorld\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_CLASSES_ROOT\htmlfile\shell]
@="TheWorld"

[HKEY_CLASSES_ROOT\htmlfile\shell\open\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_CLASSES_ROOT\htmlfile\shell\TheWorld\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_CLASSES_ROOT\HTTP\shell]
@="TheWorld"

[HKEY_CLASSES_ROOT\HTTP\shell\open\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_CLASSES_ROOT\HTTP\shell\TheWorld\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_CLASSES_ROOT\https\shell]
@="TheWorld"

[HKEY_CLASSES_ROOT\https\shell\open\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_CLASSES_ROOT\https\shell\TheWorld\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_CLASSES_ROOT\InternetShortcut\shell]
@="TheWorld"

[HKEY_CLASSES_ROOT\InternetShortcut\shell\open\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_CLASSES_ROOT\InternetShortcut\shell\TheWorld\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_CLASSES_ROOT\mhtmlfile\shell]
@="TheWorld"

[HKEY_CLASSES_ROOT\mhtmlfile\shell\open\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_CLASSES_ROOT\mhtmlfile\shell\TheWorld\command]
@="\"C:\\hardware\\TheWorld\\TheWorld.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet]
@="TheWorld.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\TheWorld.exe]
"LocalizedString"="TheWorld Browser"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\TheWorld.exe\shell\open\command]
@="C:\\hardware\\TheWorld\\TheWorld.exe"

TOP

楼主直接用批处理运行  C:\\hardware\\TheWorld\\TheWorld.exe -setdef就行了,这个操作只是设置默认浏览器,不会运行TW.
C:\\hardware\\TheWorld\\TheWorld.exe -unsetdef则是取消设置默认浏览器

TOP

返回列表