From: http://www.cppblog.com/kangnixi/archive/2010/01/28/106609.html
1. Problem Description
In VC Programming debugging, the generated debugging information is generally stored in the Debug folder, and there is also *. ncb ,*. opt ,*. aps and other files lead to too many temporary files in the program, which is inconvenient to manage. How can we quickly clear the generated temporary files?
2. Implementation skills
Select the corresponding project in the FileView view of the workspace, right-click the project, and select the Clean menu item from the shortcut menu to delete the Debug folder.
The above method only quickly clears files under Debug, and also a quick method to delete files using batch processing.
Create a text file and rename it Clear. bat. Open the file using notepad. The content is as follows:
Del *. obj *. pch *. sbr *. pdb *. idb *. ilk *. ncb *. opt *. aps/s
Run batch processing in the root directory of the project to delete the temporary files.