// googlegroups.js - open Google Groups in the system browser // Andrew Ho (andrew@zeuscat.com) // // You can run this script with Windows Scripting Host by invoking // cscript.exe from the Windows command shell, or by using wscript.exe // from Windows Explorer. I associate this with IE so that clicking on // news: or nntp: URLs uses Google Groups. // // For the latest version of this script plus documentation on how to // set up IE to use this script to handle news: or nntp: links, see // http://www.zeuscat.com/andrew/software/googlegroups.shtml. var group = null; var objArgs = WScript.Arguments; if(objArgs.length >= 1) { group = objArgs(0); if(group.substr(0, 7) == "news://") group = group.substr(7); else if(group.substr(0, 7) == "nntp://") group = group.substr(7); else if(group.substr(0, 5) == "news:") group = group.substr(5); else if(group.substr(0, 5) == "nntp:") group = group.substr(5); } var url = "http://groups.google.com/"; if(group) url = url + "groups?group=" + group; var objShell = WScript.CreateObject("WScript.Shell"); objShell.Run(url);