把下面拷进txt文件,并把txt后缀改成bat。再把它放到想清除的目录下。双击运行即可批清除VC临时文件。
@echo on echo 删除VC编译产生的临时文件 echo 删除开始... for / r . %% c in (.) do @if exist " %%c\Debug " rd / S / Q " %%c\Debug " for / r . %% c in (.) do @if exist " %%c\Release " rd / S / Q " %%c\Release " for / r . %% c in ( * .opt * .dsw * . * .bsc * .aps * .clw * .ncb * .plg * .positions * .WW * .user) do del " %%c " for / r . %% c in ( " *VA_C__Documents and Settings_Administrator_Local Settings_Application Data_VisualAssist_vc6_history_ " ) do del " %%c " echo 删除完毕...