@echo off setlocal set CSC="%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\csc.exe" if not exist %CSC% set CSC="%WINDIR%\Microsoft.NET\Framework\v4.0.30319\csc.exe" %CSC% /nologo /platform:anycpu /target:winexe /out:ColorPicker.exe /win32manifest:app.manifest ^ /reference:System.dll /reference:System.Core.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll ^ src\Program.cs src\MainForm.cs src\Palette.cs src\ScreenColorPickerForm.cs src\MagnifierForm.cs src\FolderColorizer.cs src\IconWriter.cs if %ERRORLEVEL% NEQ 0 ( echo. echo *** Echec de la compilation *** exit /b 1 ) echo. echo Compilation reussie : ColorPicker.exe endlocal