@echo off
set zzproject=%1
set zzrenderer=%2
set zzfullproj=%zzproject%60%zzrenderer%
set zzconfig=%3
set zzaction=%4

cd %zzproject%

if exist %zzfullproj%.dsw del %zzfullproj%.dsw
if exist %zzfullproj%.opt del %zzfullproj%.opt
if exist %zzfullproj%.ncb del %zzfullproj%.ncb

@echo on
%MSDEV% %zzfullproj%.dsp /MAKE "%zzfullproj% - Win32 %zzconfig%" %zzaction%
@echo off

cd ..
