@echo off cd /d "%~dp0" C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe /nologo /platform:x86 /target:winexe /win32icon:shc.ico /reference:System.dll /reference:System.Drawing.dll /reference:System.Windows.Forms.dll /reference:System.Web.Extensions.dll /out:PaymentBridge.exe PaymentBridge.cs if %errorlevel%==0 ( echo BUILD SUCCESS ) else ( echo BUILD FAILED )