Use. bat (Batch) to remove useless files generated by Keil compilation

Source: Internet
Author: User

"Reference url" http://www.openedv.com/posts/list/600.htm

1. Use. bat (Batch) file can be used to delete Keil compiled generated useless files, reduce the volume of the project disk, easy to talk about the project to the collaborators.

2. The unused file storage directory compiled by the program has been set to the Obj folder. When compiled, you will find that there are several files in the obj directory, about 100 files, occupying space will be nearly 20M.

3. Create Keilkilll.bat, and execute, you will find that the extra files will be deleted, the obj directory only hex file is saved, the size of only a few k, and the entire program size only about 1~3m.

4. The contents of the Keilkill.bat are:

Del *.bak/s
del *.ddk/s
del *.edk/s
del *.lst/s
del *.lnp/s
del *.mpf/s
del *.mpj/s
del *. obj/s
del *.omf/s
::d el*.opt/s  :: Do not allow deletion of Jlink settings
del *.plg/s
del *.rpt/s
del *.tmp/s
del *.__i/s
del *.crf/s
del *.o/s
del *.d/s
del *.axf/s
del *.tra/s
del *.dep/s          
deljlinklog.txt/s
 
del *.iex/s
del *.htm/s
del *.sct/s
del *.map/s
exit
 


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.