谢谢你!!
不过因为'C:/Documents and Settings/Administrator/Cookies/'目录里有很多像:administrator@20060713[1].txt  的文件,我想通过上面的程序删除。但会出错。。如果我换成其它的路径测试就没问题:如:c:/123/