delsln.bat 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. @echo Delete the MSVC7 or MSVC8 soultion files ...
  2. @echo *****************************************************
  3. @echo ARE YOU SURE YOU WANT TO DO THIS? Ctrl+C to ABORT ...
  4. @echo *****************************************************
  5. @pause
  6. @echo Deleting SOLUTION files ...
  7. @if EXIST *.sln del *.sln > nul
  8. @if EXIST *.vcproj del *.vcproj > nul
  9. @if EXIST *.old echo Deleting *.old ...
  10. @if EXIST *.old Del *.old > nul
  11. @if EXIST *.bak echo Deleting *.bak ...
  12. @if EXIST *.bak Del *.bak > nul
  13. @if NOT EXIST temp*.* goto dntmp
  14. @echo Delete temp*.* ...
  15. @del temp*.* > nul
  16. :dntmp
  17. @if NOT EXIST *.obj goto dnobj
  18. @echo Delete *.obj ...
  19. @del *.obj > nul
  20. :dnobj
  21. @if NOT EXIST *.err goto dnerr
  22. @echo Delete *.err ...
  23. @del *.err > nul
  24. :dnerr
  25. @if NOT EXIST *.pdb goto dnpdb
  26. @echo Delete *.pdb ...
  27. @del *.pdb > nul
  28. :dnpdb
  29. @if NOT EXIST *.lst goto dnlst
  30. @echo Delete *.lst ...
  31. @del *.lst > nul
  32. :dnlst
  33. @if EXIST *.pch echo Deleting *.pch ...
  34. @if EXIST *.pch Del *.pch > nul
  35. @if EXIST *.ilk echo Deleting *.ilk ...
  36. @if EXIST *.ilk Del *.ilk > nul
  37. @if EXIST *.NCB echo Deleting *.NCB ...
  38. @if EXIST *.NCB Del *.NCB > nul
  39. @if EXIST *.plg echo Deleting *.plg ...
  40. @if EXIST *.plg Del *.plg > nul
  41. @if EXIST *.OPT echo Deleting *.OPT ...
  42. @if EXIST *.OPT Del *.OPT > nul
  43. @if EXIST *.idb echo Deleting *.idb ...
  44. @if EXIST *.idb Del *.idb > nul
  45. @if EXIST *.aps echo Deleting *.aps ...
  46. @if EXIST *.aps Del *.aps > nul
  47. @if EXIST *.sbr echo Deleting *.sbr ...
  48. @if EXIST *.sbr Del *.sbr > nul
  49. @if NOT EXIST *.suo goto DNSUO
  50. @attrib -S -R -H *.suo > nul
  51. @if EXIST *.suo echo Deleting *.suo ...
  52. @if EXIST *.suo Del *.suo > nul
  53. :DNSUO
  54. @if EXIST *.user echo Deleting *.user ...
  55. @if EXIST *.user Del *.user > nul
  56. @echo All done ...