You want to build a python list of the shape files and iterate through it.Use the ListDatasets({wild_card}) tool to build the list.That is where your '*.shp' wildcard goes.You need to set the workspace before using ListDataSets (I see you did that...)Then, your loop is like this:
import arcgisscripting
gp = arcgisscripting.create(9.3)
gp.workspace = "p:\Traffic_Signals\KML\Jurisdictions\TEST"
shapeList = gp.ListDatasets('*.shp')
print "Removing Core and Comments from Shapefile"
for shape in shapeList:
gp.DeleteField_management(shape, "Core; Comments")
OR
import arcpy
arcpy.env.workspace = "p:\Traffic_Signals\KML\Jurisdictions\TEST"
shapeList = arcpy.ListDatasets('*.shp')
print "Removing Core and Comments from Shapefile"
for shape in shapeList:
arcpy.DeleteField_management(shape, ["Core", "Comments"])
If you are using Arc10.x, then you can import arcpy and don't need arcgisscripting, although you can use it if you want.If you are in arc9.x, you need arcgisscripting and cannot import arcpy... and, if you are using arc9.3, use arcgisscripting(9.3)-> Note the slightly different syntax for arcgisscripting and arcpyfor the second question...you will have to search for the directories under your base one.The os and os.path commands will help there. (import os)get a list of directory entries with os.listdir(path)You can test for directories with os.path.isdir(path)OR, you can hardcode the subdirectories and do the arcpy.ListDataSets for each one.