@echo off cd e:/Program Files/Microsoft Visual Studio 10.0/Common7/IDE e: set /p var=请输入工作项ID(多个ID以","隔开): witadmin destroywi /collection:http://192.168.10.2:8080/tfs/ /id:%var% pause 粘到txt文件,换成bat 路径改成你的VS路径,http改成你的url就行了