@echo off
if not exist Main.cpp echo %cd%\Main.cpp不存在>>log.txt
if not exist
Shader.fsh echo %cd%\Shader.fsh不存在>>log.txt
if not exist Shader.vsh
echo %cd%\Shader.vsh不存在>>log.txt
cd %~d0
cd %cd%
@echo on
qmake -project
qmake "QT+=opengl"
nmake
@echo off
copy /y Shader.fsh debug\
copy /y Shader.vsh debug\
@echo on
pause
注释:
%~d0 当前盘符
%cd% 当前路径
原文地址:http://www.cnblogs.com/tiancun/p/3763570.html