thats odd, because i tested that script against several mxds before i posted it and it worked like a charm. How are you executing the script? I noticed this line inside the code you just posted:mxd = arcpy.mapping.MapDocument("CURRENT")
the "CURRENT" keyword only works if you are running the script from within ArcMap I believe. To run the code I gave you, open it with IDLE, replace the stuff in red, save it, then from the Run menu, select 'Run Module' and see if that helps.Also, this line won't work I don't think:ws = arcpy.env.workspace(r"M:\SIS\ArcGIS Workspace\GIS_Project_lyrs\Dekho\lyrs\Test")
you can't set an object/variable like ws with that statement it has to be on a line of its own.. you can do:arcpy.env.workspace(r"M:\SIS\ArcGIS Workspace\GIS_Project_lyrs\Dekho\lyrs\Test")
orws = r"M:\SIS\ArcGIS Workspace\GIS_Project_lyrs\Dekho\lyrs\Test"
arcpy.env.workspace(ws)
So you might try fixing those things and see if that works better for you.