auto_rebuild.bat 657 B

1234567891011121314151617181920212223242526
  1. ::clean output files
  2. del *.log /s
  3. del *.dblite /s
  4. del project.* /s
  5. del *.scvd /s
  6. rd /s /q .\build
  7. rd /s /q .\settings
  8. rd /s /q .\DebugConfig
  9. ::start cmd window and do the command
  10. ::start cmd.exe /c "scons --target=mdk5 -s"
  11. start cmd.exe /c "scons --target=iar -s&&scons --target=mdk5 -s"
  12. ::start 用来启动一个应用
  13. ::cmd /k 表示cmd后面的命令执行完后不关闭窗口。
  14. ::如果要在执行完成后关闭窗口可以用/c 。
  15. ::详细请使用cmd/?查看
  16. ::"命令1&&命令2&&.."
  17. ::将要执行的多条命令使用引号全部包起来,并且在命令间用&&分隔。
  18. ::如果只有一条命令则不用引号也可以。
  19. ::如:
  20. ::@echo off
  21. ::start cmd /k "cd/d E:\&&echo hello&&pause&&ping www.163.com"