The following code will show you. I'll add it to my STSADM extensions at
some point. To get the description of the site template, look in the
WEBTEMP* files in the 12\TEMPLATE\1033\XML folder (substitute your
locale Id as necessary).
----- BEGIN CODE ------
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
if (args.Length != 1)
{
Console.WriteLine("Usage: ConsoleApplication1.exe [site_url]");
return;
}
string url = args[0];
using (SPSite site = new SPSite(url))
{
using (SPWeb web = site.OpenWeb())
{
Console.WriteLine(String.Format("Template information about
{0}", url));
Console.WriteLine(String.Format(" WebTemplate: {0}",
web.WebTemplate));
Console.WriteLine(String.Format(" WebTemplateID: {0}",
web.WebTemplateId));
}
}
}
}
}