@echo off if "%1"=="" goto usage if exist %1.mak goto doit if exist %1 goto doit2 goto usage :doit nmake /F %1.mak %2 %3 %4 %5 %6 %7 %8 %9 goto end :doit2 nmake /F %1 %2 %3 %4 %5 %6 %7 %8 %9 goto end :usage echo QMAKE make_file[.mak] [...] echo make_file = Make File echo ... = Options to give to NMAKE (/a = force build) echo. :end