编写批处理(.BAT)文件,批量编译工程
VB4: (vb6类似)
set vb4exe="C:\Program Files\Microsoft Visual Basic\VB32.EXE"
%vb4exe% /make d:\a\b.vbp d:\output\b.exe
rem ping这句话是在编译多个文件时进行延时的, -n后面的3表示延时3秒
ping -n 3 127.0.0.1>nul
vc6:
msdev e:\src\a.dsp /make "all - Win32 release" /rebuild >>D:Clog\result.txt
ping -n 3 127.0.0.1>nul
msdev e:\src\b.dsp /make /make "all - Win32 release" /rebuild >>D:Clog\result.txt
ping -n 3 127.0.0.1>nul
说明: >>D:Clog\result.txt ,可以把编译信息写入到指定路径的文件中,方便查看编译结果(是否有warning和error)
参考以下文章内容,谢谢文章作者的付出
https://blog.csdn.net/didaibi1119/article/details/101516211
https://blog.csdn.net/yonghengzhimi/article/details/108512622
https://www.cnblogs.com/flying_bat/archive/2009/07/23/1529179.html
https://blog.csdn.net/lisuyulisuyulisuyu/article/details/117462786
https://www.csdn.net/tags/Mtjacg0sNTIxNzAtYmxvZwO0O0OO0O0O.html
https://zhidao.baidu.com/question/523499250471348645.html