Thanks David! I had to modify for file geodatabases, but it worked perfectly. My (slight) modifications are below;
[HTML]import arcgisscripting, os
gp = arcgisscripting.create(9.3)
gp.overwriteOutput = True
gp.workspace = "B:\NRCA"
outputCS = gp.CreateObject("SpatialReference")
outputCS.createFromFile(os.path.join(gp.getinstallinfo()['InstallDir'],"Coordinate Systems/Projected Coordinate Systems/World/WGS 1984 Web Mercator (Auxiliary Sphere).prj"))
transformation = ""
outFolder = os.path.join(gp.workspace, "projected")
gp.CreateFolder_management(*os.path.split(outFolder))
for gdb in gp.ListWorkspaces("", "FileGDB"): # Get all personal geodatabases
gp.workspace = gdb
gdb = os.path.basename(gdb)
toProject = gp.ListFeatureClasses() + gp.ListDatasets()
gp.CreateFileGDB_management(outFolder, gdb)
gp.BatchProject_management(toProject,
os.path.join(outFolder, gdb),
outputCS,
"",
transformation)
[/HTML]