世界之窗论坛's Archiver

webjump 发表于 2008-4-3 11:15

如何使用命令行方式设置世界之窗为默认浏览器?

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

webjump 发表于 2008-4-3 13:00

自己解决了

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"

netac 发表于 2008-4-3 15:31

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

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.